mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-26 01:01:01 +00:00
Fixup per PR review:
* Added internal metric to track `illegal_negative_counter` events
This commit is contained in:
parent
42e41f1a7e
commit
e493a9c766
1 changed files with 1 additions and 0 deletions
|
@ -275,6 +275,7 @@ func (b *Exporter) Listen(e <-chan Events) {
|
|||
// will cause the exporter to panic. Instead we will warn and continue to the next event.
|
||||
if event.Value() < 0.0 {
|
||||
log.Debugf("Counter %q is: '%f' (counter must be non-negative value)", metricName, event.Value())
|
||||
eventStats.WithLabelValues("illegal_negative_counter").Inc()
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue