Skip to content

Commit

Permalink
beatlabs#128 avoid defining the prometheus registerer
Browse files Browse the repository at this point in the history
Signed-off-by: Vangelis Katikaridis <[email protected]>
  • Loading branch information
drakos74 committed May 9, 2020
1 parent 45c2316 commit f17d471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/http/cache/cache_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func newPrometheusMetrics() *prometheusMetrics {
operations: operations,
}

prometheus.DefaultRegisterer.MustRegister(m.ageHistogram, m.operations)
prometheus.MustRegister(m.ageHistogram, m.operations)

return m

Expand Down

0 comments on commit f17d471

Please sign in to comment.