mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-29 10:41:00 +00:00
Count events for which no mapping was found
This commit is contained in:
parent
f031e30721
commit
3d0ccb9ed5
2 changed files with 6 additions and 1 deletions
|
@ -218,6 +218,7 @@ func (b *Exporter) Listen(e <-chan Events) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
eventsUnmapped.Inc()
|
||||
metricName = escapeMetricName(event.MetricName())
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,10 @@ var (
|
|||
},
|
||||
[]string{"type"},
|
||||
)
|
||||
eventsUnmapped = prometheus.NewCounter(prometheus.CounterOpts{
|
||||
Name: "statsd_exporter_events_unmapped_total",
|
||||
Help: "The total number of StatsD events no mapping was found for.",
|
||||
})
|
||||
networkStats = prometheus.NewCounterVec(
|
||||
prometheus.CounterOpts{
|
||||
Name: "statsd_exporter_packets_total",
|
||||
|
@ -41,7 +45,7 @@ var (
|
|||
)
|
||||
mappingsCount = prometheus.NewGauge(prometheus.GaugeOpts{
|
||||
Name: "statsd_exporter_loaded_mappings_count",
|
||||
Help: "The number of configured metric mappings.",
|
||||
Help: "The current number of configured metric mappings.",
|
||||
})
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue