Send 'running' stats to graphite

This commit is contained in:
Scott Schneider 2014-02-11 12:51:36 -08:00
parent b775579c6a
commit c8988c3dbf

View file

@ -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