mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-22 23:41:00 +00:00
Resolves #88 - histograms use wrong units
This commit is contained in:
parent
aeab2905ad
commit
e37bee9bf2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue