Resolves #88 - histograms use wrong units

This commit is contained in:
Dave Rawks 2017-08-14 11:20:47 -07:00
parent aeab2905ad
commit e37bee9bf2

View file

@ -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)