Re: [libvirt] monitor cpu & network load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 09, 2008 at 05:16:10PM +0800, Zu wrote:
> I want to write a program to monitor the CPU and network usage of the Xen
> domUs.  But I don't know how to implement. Can the libvirt APIs help me to
> do that?  Does libvirt have the APIs to get the CPU and network usages? If
> yes I'll study libvirt APIs.

Yes, libvirt APIs can do that.  However it'll probably be much easier
for you to just use 'virt-top --csv ...' which does all the hard work
and all you need to do is to parse the generated CSV format.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]