Skip to content

Commit

Permalink
Scale summaries from milliseconds to seconds.
Browse files Browse the repository at this point in the history
Fixes #177
  • Loading branch information
SpencerMalone authored Jan 9, 2019
1 parent 2d35b09 commit 40ea0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 40ea0cb

Please sign in to comment.