mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Merge pull request #9 from sschneid/running_vm_graph
Display a 'running VMs' graph on the dashboard
This commit is contained in:
commit
d4e8e5db28
8 changed files with 260 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue