Skip to content

Commit

Permalink
fix: initialize staging_write_bytes metric as Counter instead of Gauge (
Browse files Browse the repository at this point in the history
  • Loading branch information
Looka149 authored Nov 1, 2024
1 parent 9ddc6d4 commit 3f52acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/chunk/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
})
Expand Down

0 comments on commit 3f52acc

Please sign in to comment.