(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.
This commit is contained in:
Spencer McElmurry 2018-07-06 14:06:31 -07:00
parent 0ce66eb763
commit 27c9ee7591

View file

@ -102,7 +102,7 @@ module Vmpooler
# last boot time is displayed in API, and used by alarming script # last boot time is displayed in API, and used by alarming script
$redis.hset('vmpooler__lastboot', pool, Time.now) $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") $logger.log('s', "[>] [#{pool}] '#{vm}' moved from 'pending' to 'ready' queue")
end end
end end