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.
Daniel Veillard
2010-Oct-06 10:45 UTC
[libvirt-users] Monitoring and statistics through libvirt
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 at veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
Peter Phaal
2010-Oct-15 23:15 UTC
[libvirt-users] Monitoring and statistics through libvirt
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
peter.phaal at gmail.com
2010-Oct-15 23:26 UTC
[libvirt-users] Monitoring and statistics through libvirt
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20101015/e377de4a/attachment.htm>