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-07-20 23:30:24 +02:00
parent 7a964ae2ca
commit 450fa72fbb
4 changed files with 23 additions and 0 deletions
+1
View File
@@ -656,6 +656,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() {