diff --git a/exporter.go b/exporter.go index 3d366f4..7a6adb4 100644 --- a/exporter.go +++ b/exporter.go @@ -420,7 +420,7 @@ func (b *Exporter) handleEvent(event Event) { mapping, ) if err == nil { - summary.Observe(event.Value()) + summary.Observe(event.Value() / 1000) // prometheus presumes seconds, statsd millisecond b.saveLabelValues(metricName, prometheusLabels, mapping.Ttl) eventStats.WithLabelValues("timer").Inc() } else { diff --git a/exporter_test.go b/exporter_test.go index a7c6655..f353c96 100644 --- a/exporter_test.go +++ b/exporter_test.go @@ -216,7 +216,7 @@ mappings: // event with ttl = 2s from a mapping &TimerEvent{ metricName: "bazqux.main", - value: 42, + value: 42000, }, }