Vinicius Gonçalves Braga
2012-Oct-18 14:02 UTC
[libvirt-users] Using libvirt to monitor virtual environment.
Hey, I am new with libvirt. I am working to create a program to monitor a virtual environment. I have seen some solutions that use libvirt. Is this API good to make monitoring operations? I didn't see operations that show the CPU or memory usage, at least in Java binding. Are there operations like these, or we have to calculate based on lower level informations? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121018/83b84171/attachment.htm>
Eric Blake
2012-Oct-18 16:31 UTC
[libvirt-users] Using libvirt to monitor virtual environment.
On 10/18/2012 08:02 AM, Vinicius Gon?alves Braga wrote:> Hey, > > I am new with libvirt. I am working to create a program to monitor a > virtual environment. I have seen some solutions that use libvirt. Is this > API good to make monitoring operations? I didn't see operations that show > the CPU or memory usage, at least in Java binding. Are there operations > like these, or we have to calculate based on lower level informations?You may be interested in looking at 'virt-top', which is an example of tracking CPU usage on top of libvirt APIs, for how best to do things. I don't specifically know of a Java client that does the same, but it should be fairly straightforward to translate the API calls used by virt-top into the Java bindings for libvirt. -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 617 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121018/08e4db42/attachment.sig>