queue metrics: refactor the metrics into a struct

This commit is contained in:
Graham Christensen
2022-04-06 19:59:53 -04:00
parent 46f52b4c4e
commit 5de08d412e
3 changed files with 22 additions and 11 deletions

View File

@ -82,7 +82,7 @@ struct PreviousFailure : public std::exception {
bool State::getQueuedBuilds(Connection & conn,
ref<Store> destStore, unsigned int & lastBuildId)
{
queue_queued_builds_calls.Increment();
prom.queue_checks_started.Increment();
printInfo("checking the queue for builds > %d...", lastBuildId);