Add cache eviction metrics to the cache plugin (#4411)

Signed-off-by: Frank Riley <fhriley@gmail.com>
This commit is contained in:
Frank Riley
2021-03-21 08:58:16 -07:00
committed by GitHub
parent ed3f287fe8
commit 5b9b079dab
4 changed files with 22 additions and 5 deletions

View File

@@ -79,6 +79,7 @@ If monitoring is enabled (via the *prometheus* plugin) then the following metric
* `coredns_cache_prefetch_total{server}` - Counter of times the cache has prefetched a cached item.
* `coredns_cache_drops_total{server}` - Counter of responses excluded from the cache due to request/response question name mismatch.
* `coredns_cache_served_stale_total{server}` - Counter of requests served from stale cache entries.
* `coredns_cache_evictions_total{server, type}` - Counter of cache evictions.
Cache types are either "denial" or "success". `Server` is the server handling the request, see the
prometheus plugin for documentation.