From e37bee9bf2520fcdaae79113185c105068bfa552 Mon Sep 17 00:00:00 2001 From: Dave Rawks Date: Mon, 14 Aug 2017 11:20:47 -0700 Subject: [PATCH] Resolves #88 - histograms use wrong units --- exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter.go b/exporter.go index 3ebdf44..6f6e20e 100644 --- a/exporter.go +++ b/exporter.go @@ -327,7 +327,7 @@ func (b *Exporter) Listen(e <-chan Events) { mapping, ) if err == nil { - histogram.Observe(event.Value()) + histogram.Observe(event.Value() / 1000) // prometheus presumes seconds, statsd millisecond eventStats.WithLabelValues("timer").Inc() } else { log.Errorf(regErrF, metricName, err)