From 04b5d4b79be2d493daaf3fc22ea31a8a17324d90 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Fri, 7 Jun 2019 09:00:20 -0500 Subject: [PATCH] Use seconds, not milliseconds for timings --- prometheus/prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/prometheus.go b/prometheus/prometheus.go index 1cc08a268..b29267019 100644 --- a/prometheus/prometheus.go +++ b/prometheus/prometheus.go @@ -233,7 +233,7 @@ func (c *prometheusClient) Set(name string, value string, rate float64) { // Timing tracks timing information for a metric. func (c *prometheusClient) Timing(name string, value time.Duration, rate float64) { - durationMs := value / time.Millisecond + durationMs := value / time.Second c.Histogram(name, float64(durationMs), rate) }