Skip to content

Commit

Permalink
compactor: fix metric name for a compactor (#11412)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:
I added a new metric but prefixed it by mistake with
`loki_boltdb_shipper` instead of `loki_compactor`. This PR fixes it.
  • Loading branch information
sandeepsukhani authored Dec 8, 2023
1 parent 51567ad commit 62a2217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compactor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func newMetrics(r prometheus.Registerer) *metrics {
Help: "Time (in seconds) spent in applying retention",
}),
applyRetentionLastSuccess: promauto.With(r).NewGauge(prometheus.GaugeOpts{
Namespace: "loki_boltdb_shipper",
Namespace: "loki_compactor",
Name: "apply_retention_last_successful_run_timestamp_seconds",
Help: "Unix timestamp of the last successful retention run",
}),
Expand Down

0 comments on commit 62a2217

Please sign in to comment.