diff --git a/component/http/cache/cache_metrics.go b/component/http/cache/cache_metrics.go index 39972823a..d96b4ca09 100644 --- a/component/http/cache/cache_metrics.go +++ b/component/http/cache/cache_metrics.go @@ -62,7 +62,7 @@ func newPrometheusMetrics() *prometheusMetrics { operations: operations, } - prometheus.DefaultRegisterer.MustRegister(m.ageHistogram, m.operations) + prometheus.MustRegister(m.ageHistogram, m.operations) return m