You might want to take a look at using sFlow (http://www.sflow.org) as the
monitoring protocol. A Host sFlow agent (http://host-sflow.sourceforge.net/)
installed on the hypervisor will use libxenstat to retrieve and
periodically export hypervisor and per VM metrics using the sFlow protocol
(basically XDR encoded structures sent over UDP):
http://sflow.org/sflow_host.txt
Receiving and decoding this data in Java is straightforward using methods
in ByteBuffer (note: XDR is a BIG_ENDIAN encoding). Here are some links to
additional resources:
http://blog.sflow.com/2010/01/developer-resources.html
You can go beyond the basic performance counters. sFlow support in the Open
vSwitch provides detailed visibility into traffic between VMs:
http://blog.sflow.com/2010/01/open-vswitch.html
On Tue, Oct 8, 2013 at 5:28 AM, sse <retron24@hotmail.com> wrote:
> I need to write a Java application that is remotely collecting and
> monitoring performance informations/metrics from a Xen hypervisor. This
> Java application should fetch the same informations from xen that „xm info“
> and „xm top“ displays.
>
> Used Xen version: Xen 4.1.3 with the deamon xend, the default toolstack
> and the console xm.
>
> QUESTIONS:
>
> Can anyone tell me which direction I should look for a solution?
>
> Is there a Java binding respectively a Java API for Xen (with xend and the
> default toolstack with xm)?
>
> I understood it using Libvirt (that habe a Java binding) requires to use
> the Toolstack Libvirt in Xen. So, is it possible to have both installed,
> the default toolstack and Libvirt?
>
>
> Thanks in advance for all answers!
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xen.org
> http://lists.xen.org/xen-users
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users