From 0a32ac5b540ffb8e1b2e83858d9f7e91e4b24d25 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 4 Aug 2022 15:08:28 -0400 Subject: [PATCH] add unit --- consensus/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/metrics.go b/consensus/metrics.go index 641dc5ad0..5f936cdd7 100644 --- a/consensus/metrics.go +++ b/consensus/metrics.go @@ -123,7 +123,7 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics { RoundDuration: prometheus.NewHistogramFrom(stdprometheus.HistogramOpts{ Namespace: namespace, Subsystem: MetricsSubsystem, - Name: "round_duration", + Name: "round_duration_seconds", Help: "Time spent in a round.", Buckets: stdprometheus.ExponentialBucketsRange(0.1, 100, 8), }, labels).With(labelsAndValues...), @@ -247,7 +247,7 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics { StepDuration: prometheus.NewHistogramFrom(stdprometheus.HistogramOpts{ Namespace: namespace, Subsystem: MetricsSubsystem, - Name: "step_duration", + Name: "step_duration_seconds", Help: "Time spent per step.", Buckets: stdprometheus.ExponentialBucketsRange(0.1, 100, 8), }, append(labels, "step")).With(labelsAndValues...),