diff --git a/cmd/controller/controller.go b/cmd/controller/controller.go index 8b0a3ad3414..d3b93efa17b 100644 --- a/cmd/controller/controller.go +++ b/cmd/controller/controller.go @@ -84,9 +84,6 @@ func CmdMain() { }() } - if !config.EnableMetrics { - return - } metrics.InitKlogMetrics() metrics.InitClientGoMetrics() addr := util.JoinHostPort(metricsAddr, config.PprofPort)