forked from mirrors/statsd_exporter
Make mapper cache metric names more specific
cf. https://github.com/prometheus/statsd_exporter/pull/282#issuecomment-573031514 Signed-off-by: Matthias Rampke <mr@soundcloud.com>
This commit is contained in:
parent
6f6d036307
commit
7e6d394af0
2 changed files with 7 additions and 7 deletions
|
@ -1,9 +1,9 @@
|
|||
## 0.14.0 / unreleased
|
||||
|
||||
* [ENHANCEMENT] Add metrics for mapping cache hits ([#280](https://github.com/prometheus/statsd_exporter/pull/280))
|
||||
* [CHANGE] Rename existing metric for mapping cache size ([#282](https://github.com/prometheus/statsd_exporter/pull/282))
|
||||
* [CHANGE] Rename existing metric for mapping cache size ([#282](https://github.com/prometheus/statsd_exporter/pull/282), [#284](https://github.com/prometheus/statsd_exporter/pull/284))
|
||||
|
||||
The metric `statsd_exporter_cache_length` is now called `mapping_cache_length`.
|
||||
The metric `statsd_exporter_cache_length` is now called `statsd_metric_mapper_cache_length`.
|
||||
|
||||
## 0.13.0 / 2019-12-06
|
||||
|
||||
|
|
|
@ -21,20 +21,20 @@ import (
|
|||
var (
|
||||
cacheLength = prometheus.NewGauge(
|
||||
prometheus.GaugeOpts{
|
||||
Name: "mapping_cache_length",
|
||||
Name: "statsd_metric_mapper_cache_length",
|
||||
Help: "The count of unique metrics currently cached.",
|
||||
},
|
||||
)
|
||||
cacheGetsTotal = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
Name: "mapping_cache_gets_total",
|
||||
Help: "The count of total cache gets.",
|
||||
Name: "statsd_metric_mapper_cache_gets_total",
|
||||
Help: "The count of total metric cache gets.",
|
||||
},
|
||||
)
|
||||
cacheHitsTotal = prometheus.NewCounter(
|
||||
prometheus.CounterOpts{
|
||||
Name: "mapping_cache_hits_total",
|
||||
Help: "The count of total cache hits.",
|
||||
Name: "statsd_metric_mapper_cache_hits_total",
|
||||
Help: "The count of total metric cache hits.",
|
||||
},
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue