diff --git a/main.go b/main.go index 45f400a7a9f3..b18fed233e28 100644 --- a/main.go +++ b/main.go @@ -114,7 +114,7 @@ func main() { controller.UpdateTaskBulk() }) } - if common.IsMasterNode && os.Getenv("ENABLE_METRICS") != "" { + if os.Getenv("ENABLE_METRICS") != "" { register := prometheus.NewRegistry() metrics.RegisterMetrics(register) gatherersRegistry := prometheus.Gatherers{register}