From 3f52accd9cdf939803fdb59bde63e1255ba7e5fb Mon Sep 17 00:00:00 2001 From: Injun Baeg Date: Fri, 1 Nov 2024 17:40:02 +0900 Subject: [PATCH] fix: initialize staging_write_bytes metric as Counter instead of Gauge (#5269) --- pkg/chunk/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chunk/metrics.go b/pkg/chunk/metrics.go index 1e1b125667d0..f2f6a22d6267 100644 --- a/pkg/chunk/metrics.go +++ b/pkg/chunk/metrics.go @@ -88,7 +88,7 @@ func (c *cacheManagerMetrics) initMetrics() { Name: "staging_block_bytes", Help: "Total bytes of blocks in the staging path.", }) - c.stageWriteBytes = prometheus.NewGauge(prometheus.GaugeOpts{ + c.stageWriteBytes = prometheus.NewCounter(prometheus.CounterOpts{ Name: "staging_write_bytes", Help: "write bytes of blocks in the staging path.", })