Skip to content
This repository was archived by the owner on Aug 13, 2019. It is now read-only.

Commit 6c62437

Browse files
gouthamvebrian-brazil
authored andcommitted
Fix metric unit (#275)
Fixes #274 Signed-off-by: Goutham Veeramachaneni <[email protected]>
1 parent 44dd5e1 commit 6c62437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compact.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ func newCompactorMetrics(r prometheus.Registerer) *compactorMetrics {
9191
Help: "Total number of compactions that failed for the partition.",
9292
})
9393
m.duration = prometheus.NewHistogram(prometheus.HistogramOpts{
94-
Name: "prometheus_tsdb_compaction_duration",
95-
Help: "Duration of compaction runs.",
94+
Name: "prometheus_tsdb_compaction_duration_seconds",
95+
Help: "Duration of compaction runs",
9696
Buckets: prometheus.ExponentialBuckets(1, 2, 10),
9797
})
9898
m.chunkSize = prometheus.NewHistogram(prometheus.HistogramOpts{

0 commit comments

Comments
 (0)