[libvirt-users] Monitoring and statistics through libvirt

Peter Phaal peter.phaal at inmon.com
Fri Oct 15 23:15:02 UTC 2010


On Fri, Oct 01, 2010 at 03:47:23PM +0200, Tomi wrote:
> Hi folks,
> 
> is it possible to monitor and gather statistics in realtime (CPU,
> memory, HDD, network, ... - something like dstat) of guest systems
> with libvirt through console from host system (KVM based)? If yes, do
> those guests need to be created through libvirt? Thanks for your help
> and time.

If you have a large number of servers to monitor, you might want to look at the Host sFlow agent:
http://host-sflow.sourceforge.net/

The Host sFlow agent is installed on the server and locally polls physical server statistics and VM statistics using libvirt. The statistics are exported using the sFlow protocol.
http://www.sflow.org/

If you want detailed network visibility then the Open vSwitch includes sFlow monitoring of inter-VM traffic:
http://openvswitch.org/

For more information, see:
http://blog.sflow.com/2010/10/kvm.html
http://blog.sflow.com/2010/10/sflowtrend-adds-server-performance.html

Peter






More information about the libvirt-users mailing list