Initialize schedule Prometheus metrics to have them created beforehand (see https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics)

Signed-off-by: Alex Lemaresquier <alex+github@lemaresquier.org>
This commit is contained in:
Alex Lemaresquier
2018-08-10 10:11:42 -07:00
committed by Steve Kriss
parent 0acd368291
commit 9f80f01c2a
4 changed files with 23 additions and 0 deletions
+1
View File
@@ -651,6 +651,7 @@ func (s *server) runControllers(config *api.Config) error {
s.sharedInformerFactory.Ark().V1().Schedules(),
config.ScheduleSyncPeriod.Duration,
s.logger,
s.metrics,
)
wg.Add(1)
go func() {