From 7e6d394af0e297882fcf0d6340c30510c6240ddb Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Fri, 10 Jan 2020 14:32:16 +0000 Subject: [PATCH] Make mapper cache metric names more specific cf. https://github.com/prometheus/statsd_exporter/pull/282#issuecomment-573031514 Signed-off-by: Matthias Rampke --- CHANGELOG.md | 4 ++-- pkg/mapper/mapper_cache.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) 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.", }, ) )