aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/metrics.go
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zounengren@cmss.chinamobile.com> 2020-04-04 00:30:06 +0800
committerGravatar GitHub <noreply@github.com> 2020-04-03 09:30:06 -0700
commit4ccd55e95e9f54a0078d7dda76a447879c2f15a3 (patch)
treeaae93e65cb0b82f3a7b815625921691397fd581e /plugin/cache/metrics.go
parent7bb32dee7de8064a9c7787be1776741209dc9d16 (diff)
downloadcoredns-4ccd55e95e9f54a0078d7dda76a447879c2f15a3.tar.gz
coredns-4ccd55e95e9f54a0078d7dda76a447879c2f15a3.tar.zst
coredns-4ccd55e95e9f54a0078d7dda76a447879c2f15a3.zip
correct metrics name of cache size (#3805)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
Diffstat (limited to 'plugin/cache/metrics.go')
-rw-r--r--plugin/cache/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/cache/metrics.go b/plugin/cache/metrics.go
index e82028902..3240d5fa6 100644
--- a/plugin/cache/metrics.go
+++ b/plugin/cache/metrics.go
@@ -11,7 +11,7 @@ var (
cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: plugin.Namespace,
Subsystem: "cache",
- Name: "size",
+ Name: "entries",
Help: "The number of elements in the cache.",
}, []string{"server", "type"})
// cacheHits is counter of cache hits by cache type.