mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-26 17:21:01 +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,
|
mapping,
|
||||||
)
|
)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
histogram.Observe(event.Value())
|
histogram.Observe(event.Value() / 1000) // prometheus presumes seconds, statsd millisecond
|
||||||
eventStats.WithLabelValues("timer").Inc()
|
eventStats.WithLabelValues("timer").Inc()
|
||||||
} else {
|
} else {
|
||||||
log.Errorf(regErrF, metricName, err)
|
log.Errorf(regErrF, metricName, err)
|
||||||
|
|
Loading…
Reference in a new issue