Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm testing Openstack and i'd like to know how can i find out about resource utilization inside instances (Virtual Machines).

Openstack uses kvm, qemu and libvirt in my testing environment. Is there any way to get those stats without logging in machines (CPU, Memory, Swap, Network traffic)? I'd like collect those data from hypervisors or through libvirt.

Any suggestions?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

There's a ganglia plugin for sFlow which is supposed to be able to capture this kind of information, but I've never tried it.

share|improve this answer
    
sFlow is supported only in trunk so it's not what i'm looking for, but ganglia itself is really nice software. –  Simon Jun 4 '12 at 18:23
    
finally I decided to use ganglia. It was a bit difficult to set up everything and hook ganglia with host sFlow and with Openstack, but finally I was able to create useful PoC. Best in sFlow is that it supports many supervisors, including Hyper-V :) –  Simon Dec 13 '12 at 9:19

CollectD has a libvirt plugin that can query performance information of VM guests from the host. We are using this quite successfully to monitor OpenStack VMs.

http://libvirt.org/apps.html#monitoring has a few more tips, but I've only had experience with the CollectD plugin. The Nagios-virt package looks interesting and might be nice to try, but I just use a regular Nagios setup (i.e active, passive or NRPE service checks) for alerting with respect to VMs.

share|improve this answer
    
I've read that libvirt plugin can't gather all stats, to get them all collectD has to be installed on guest OS and i'd like to avoid it, but despite this I'll try it out. 1 point up, but i'm still looking for software around libvirt, mayby there are other options. –  Simon Apr 24 '12 at 16:17
    
Right now I'm using simple libvirt stats. It gives CPU, network bytes In/Out and disk IO. If I need to extend it I'll use collectd. –  Simon Jun 4 '12 at 18:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.