diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/cache/README.md | 2 | ||||
-rw-r--r-- | plugin/cache/metrics.go | 2 |
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. |