mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Send pool availability to graphite
This commit is contained in:
parent
ea0a6786a4
commit
c80cac8def
1 changed files with 4 additions and 0 deletions
|
|
@ -214,6 +214,10 @@ pools.each do |pool|
|
|||
total = $redis.scard('vmware_host_pool__ready__'+pool['name']) +
|
||||
$redis.scard('vmware_host_pool__pending__'+pool['name'])
|
||||
|
||||
$graphite.log(
|
||||
'vcloud.ready.'+pool['name'], $redis.scard('vmware_host_pool__ready__'+pool['name'])
|
||||
) if defined? $graphite
|
||||
|
||||
if (total < pool['size'])
|
||||
(1..(pool['size'] - total)).each { |i|
|
||||
clone_vm(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue