Merge pull request #284 from prometheus/mr/rename-mapping-cache-metrics

Make mapper cache metric names more specific
This commit is contained in:
Matthias Rampke 2020-01-10 14:47:46 +00:00 committed by GitHub
commit 8a309f2e6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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.",
},
)
)