mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(POOLER-34) Ship clone request to ready time to metrics (#277)
* (POOLER-34) Ship clone request to ready time to metrics Before, we were already capturing this metric but we failed to ship it anywhere. This ships the appropriate metric as `time_to_ready_state` Dashboards can be found in grafana. * Add spec test to ensure metric is being shipped properly on move_pending_vm_to_ready call.
This commit is contained in:
parent
1910cffaf7
commit
a865e6bd2f
2 changed files with 9 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ module Vmpooler
|
|||
|
||||
# last boot time is displayed in API, and used by alarming script
|
||||
$redis.hset('vmpooler__lastboot', pool, Time.now)
|
||||
|
||||
$metrics.timing("time_to_ready_state.#{pool}", finish)
|
||||
$logger.log('s', "[>] [#{pool}] '#{vm}' moved from 'pending' to 'ready' queue")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue