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

BYEONG-GI KIM kimbyeonggi at gmail.com
Tue Jan 5 00:21:45 UTC 2016


Thank you for your reply.

Actually, the reason I expect that function from libvirt API was I don't
want to install agent-like software on VM, which means I was trying to get
such information without agent for cloud environment monitoring.

By the way, I have another question about libvirt-java binding API.

Does the API fully support libvirt C API functionally? I've been trying to
get VM's current memory/cpu usages and network I/O of individual NICs, but
the coding is not easy since the description how to use each libvirt-java
binding API in Javadoc is barely sufficient. For example,
Domain.memoryStats(int number) seems returning the memory usage or
something related to that information, but I really don't know what
"number" should be given for the parameter... The return values were even
not one result per VM. What does the value exactly mean?

Thanks in advance.

Best regards

bgkim

2016-01-05 1:59 GMT+09:00 Vasiliy Tolstov <v.tolstov at selfip.ru>:

> 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.
>
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov at selfip.ru
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20160105/12b2fe19/attachment.htm>


More information about the libvirt-users mailing list