Skip to content

Commit

Permalink
Refactor Prometheus gauge to count number of master supervisors
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 2, 2023
1 parent 89327a9 commit c202707
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public function register(): void
Prometheus::addGauge('Number of master supervisors')
->name('horizon_master_supervisors')
->helpText('The number of master supervisors')
->value(fn () => app(MasterSupervisorRepository::class)->all());
->value(fn () => count(app(MasterSupervisorRepository::class)->all()));
}
}

0 comments on commit c202707

Please sign in to comment.