bin/riemann-kvminstance in riemann-tools-0.2.10 vs bin/riemann-kvminstance in riemann-tools-0.2.11
- old
+ new
@@ -6,10 +6,10 @@
include Riemann::Tools
def tick
#determine how many instances I have according to libvirt
- kvm_instances = %x[virsh list |grep i-|wc -l]
+ kvm_instances = %x[LANG=C virsh list | grep -c running]
#submit them to riemann
report(
:service => "KVM Running VMs",
:metric => kvm_instances.to_i,