aboutsummaryrefslogtreecommitdiff
path: root/plugin
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
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')
-rw-r--r--plugin/cache/README.md2
-rw-r--r--plugin/cache/metrics.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/cache/README.md b/plugin/cache/README.md
index d227ef6ce..6c343fe12 100644
--- a/plugin/cache/README.md
+++ b/plugin/cache/README.md
@@ -70,7 +70,7 @@ Entries with 0 TTL will remain in the cache until randomly evicted when the shar
If monitoring is enabled (via the *prometheus* plugin) then the following metrics are exported:
-* `coredns_cache_size{server, type}` - Total elements in the cache by cache type.
+* `coredns_cache_entries{server, type}` - Total elements in the cache by cache type.
* `coredns_cache_hits_total{server, type}` - Counter of cache hits by cache type.
* `coredns_cache_misses_total{server}` - Counter of cache misses.
* `coredns_cache_drops_total{server}` - Counter of responses excluded from the cache due to request/response question name mismatch.
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.