[libvirt-users] API for retrieving resource metrics from VMs?

Kashyap Chamarthy kchamart at redhat.com
Wed Jan 6 17:11:39 UTC 2016


On Wed, Jan 06, 2016 at 09:27:46AM +0900, BYEONG-GI KIM wrote:
> Thank you indeed!
> 
> That information would be really great help for me. I'll look for the
> libguestfs. By the way, you mentioned that the tool would be better not to
> use frequently, so... Does the tool have any performance issue?

You can see this excellent FAQ question for the rationale as to why
Laine said it'd be ineffecient to not run it frequently:

    http://libguestfs.org/guestfs-faq.1.html#can-i-monitor-the-live-disk-activity-of-a-virtual-machine-using-libguestfs

 
> 2016-01-06 5:44 GMT+09:00 Laine Stump <laine at laine.org>:
> 
> > On 01/04/2016 11:59 AM, Vasiliy Tolstov wrote:
> >
> >> 2016-01-04 16:33 GMT+03:00 BYEONG-GI KIM <kimbyeonggi at gmail.com>:
> >>
> >>> hank you for the reply!
> >>>
> >>> I used the term "disk usage" as what you mentioned first; the information
> >>> which can be retrieved via 'df' command on linux system...
> >>>
> >>> I'll then have to consider different approach to do what I want.
> >>>
> >>> Anyway, thanks again for your great help.
> >>>
> >>> Best regards
> >>>
> >> You can install under guest vm qemu-guest-agent and get info from it.
> >>
> >>
> > Another alternative would be to use the libguestfs tools to examine the
> > disk in read-only mode (be sure not to use read/write mode on an image
> > that's currently in use by its guest!). This would *not* be efficient to do
> > very frequently, but would be okay if done occasionally.
> >

> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users


-- 
/kashyap




More information about the libvirt-users mailing list