Merge pull request #9 from sschneid/running_vm_graph

Display a 'running VMs' graph on the dashboard
This commit is contained in:
Scott Schneider 2014-02-13 15:47:32 -08:00
commit d4e8e5db28
8 changed files with 260 additions and 8 deletions

View file

@ -371,9 +371,10 @@ def check_pool pool
$redis.scard('vmware_host_pool__pending__'+pool['name'])
begin
$graphite.log(
'vcloud.ready.'+pool['name'], $redis.scard('vmware_host_pool__ready__'+pool['name'])
) if defined? $graphite
if (defined? $graphite)
$graphite.log('vcloud.ready.'+pool['name'], $redis.scard('vmware_host_pool__ready__'+pool['name']))
$graphite.log('vcloud.running.'+pool['name'], $redis.scard('vmware_host_pool__running__'+pool['name']))
end
rescue
end