mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(QENG-7531) Add Marked as Failed Stat
This is a useful measure for monitoring the health of pools that we don't capture yet.
This commit is contained in:
parent
ae10bd4e22
commit
f581d065ae
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ module Vmpooler
|
|||
if time_since_clone > timeout
|
||||
if exists
|
||||
$redis.smove('vmpooler__pending__' + pool, 'vmpooler__completed__' + pool, vm)
|
||||
$metrics.increment("errors.markedasfailed.#{pool}")
|
||||
$logger.log('d', "[!] [#{pool}] '#{vm}' marked as 'failed' after #{timeout} minutes")
|
||||
else
|
||||
remove_nonexistent_vm(vm, pool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue