mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Send 'running' stats to graphite
This commit is contained in:
parent
b775579c6a
commit
c8988c3dbf
1 changed files with 4 additions and 3 deletions
|
|
@ -367,9 +367,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