From ac3e901f19d0118702917d8025ba7b6151b8351c Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Fri, 10 Jan 2020 13:10:03 +0000 Subject: [PATCH] Rename mapping cache length metric The mapper package can be used outside the statsd exporter, so it is better to use generic names here. Signed-off-by: Matthias Rampke --- pkg/mapper/mapper_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mapper/mapper_cache.go b/pkg/mapper/mapper_cache.go index 988c34d..e499986 100644 --- a/pkg/mapper/mapper_cache.go +++ b/pkg/mapper/mapper_cache.go @@ -21,7 +21,7 @@ import ( var ( cacheLength = prometheus.NewGauge( prometheus.GaugeOpts{ - Name: "statsd_exporter_cache_length", + Name: "mapping_cache_length", Help: "The count of unique metrics currently cached.", }, )