From fcb9b283ba0cf927646d332a68c049718ec1d236 Mon Sep 17 00:00:00 2001 From: Salva Corts Date: Thu, 27 Jun 2024 15:51:02 +0200 Subject: [PATCH] fix(blooms): Remove unused arg (#13343) --- pkg/bloombuild/builder/builder.go | 2 +- pkg/bloombuild/builder/metrics.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/bloombuild/builder/builder.go b/pkg/bloombuild/builder/builder.go index 37f5c7d616fb2..0ee9afbc71fd5 100644 --- a/pkg/bloombuild/builder/builder.go +++ b/pkg/bloombuild/builder/builder.go @@ -69,7 +69,7 @@ func New( return nil, fmt.Errorf("error creating TSDB store: %w", err) } - metrics := NewMetrics(r, bloomStore.BloomMetrics()) + metrics := NewMetrics(r) b := &Builder{ ID: builderID, cfg: cfg, diff --git a/pkg/bloombuild/builder/metrics.go b/pkg/bloombuild/builder/metrics.go index 37e53b0d9f086..f94d92353ee1f 100644 --- a/pkg/bloombuild/builder/metrics.go +++ b/pkg/bloombuild/builder/metrics.go @@ -3,8 +3,6 @@ package builder import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" - - v1 "github.com/grafana/loki/v3/pkg/storage/bloom/v1" ) const ( @@ -32,7 +30,7 @@ type Metrics struct { chunkSize prometheus.Histogram } -func NewMetrics(r prometheus.Registerer, bloomMetrics *v1.Metrics) *Metrics { +func NewMetrics(r prometheus.Registerer) *Metrics { return &Metrics{ running: promauto.With(r).NewGauge(prometheus.GaugeOpts{ Namespace: metricsNamespace,