From 6c624371013e4c0d495868e72e3ed45f65b20cb3 Mon Sep 17 00:00:00 2001 From: Goutham Veeramachaneni Date: Mon, 5 Feb 2018 14:06:18 +0530 Subject: [PATCH] Fix metric unit (#275) Fixes #274 Signed-off-by: Goutham Veeramachaneni --- compact.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compact.go b/compact.go index b82d9a04ce..713ddc3155 100644 --- a/compact.go +++ b/compact.go @@ -91,8 +91,8 @@ func newCompactorMetrics(r prometheus.Registerer) *compactorMetrics { Help: "Total number of compactions that failed for the partition.", }) m.duration = prometheus.NewHistogram(prometheus.HistogramOpts{ - Name: "prometheus_tsdb_compaction_duration", - Help: "Duration of compaction runs.", + Name: "prometheus_tsdb_compaction_duration_seconds", + Help: "Duration of compaction runs", Buckets: prometheus.ExponentialBuckets(1, 2, 10), }) m.chunkSize = prometheus.NewHistogram(prometheus.HistogramOpts{