diff --git a/metrics/metrics.go b/metrics/metrics.go index 6d14c8ecf1..8ae7aec435 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -46,7 +46,7 @@ func init() { } } for _, enabler := range expensiveEnablerFlags { - if !Enabled && flag == enabler { + if !EnabledExpensive && flag == enabler { log.Info("Enabling expensive metrics collection") EnabledExpensive = true }