Skip to content

Commit

Permalink
fix registry
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacorts committed Nov 20, 2024
1 parent 31b902c commit 5a81ee0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/bloombuild/planner/strategies/chunksize.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"

Expand All @@ -31,9 +32,9 @@ type ChunkSizeStrategyMetrics struct {
tenantTaskSize *prometheus.HistogramVec
}

func NewChunkSizeStrategyMetrics(reg prometheus.Registerer) *ChunkSizeStrategyMetrics {
func NewChunkSizeStrategyMetrics(r prometheus.Registerer) *ChunkSizeStrategyMetrics {
return &ChunkSizeStrategyMetrics{
tenantTaskSize: prometheus.NewHistogramVec(prometheus.HistogramOpts{
tenantTaskSize: promauto.With(r).NewHistogramVec(prometheus.HistogramOpts{
Namespace: metricsNamespace,
Subsystem: metricsSubsystem,
Name: "tenant_task_size_bytes",
Expand Down

0 comments on commit 5a81ee0

Please sign in to comment.