[libvirt-users] Monitoring and statistics through libvirt

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.

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.
look at virDomainBlockStats/virDomainInterfaceStats/virDomainMemoryStats in the library API, as well as the equivalent commands in the virsh command line tool domblkstat/domifstat/dommemstat And sure libvirt must know about the domain to be able to monitor it. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
participants (2)
-
Daniel Veillard
-
Tomi