diff --git a/CHANGELOG.md b/CHANGELOG.md index 4830665..878d4c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/pkg/mapper/mapper_cache.go b/pkg/mapper/mapper_cache.go index e499986..1452d65 100644 --- a/pkg/mapper/mapper_cache.go +++ b/pkg/mapper/mapper_cache.go @@ -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.", }, ) )