aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-06-23 12:57:06 +0000
committerGravatar Miek Gieben <miek@miek.nl> 2016-06-23 12:57:06 +0000
commit5e2beb3e845c05ec3edb79d4b9004cdb791cdced (patch)
treee517310b40851b5c92846c7fc96da9079048d947 /middleware
parentf50f86822beb1e689210dd85284fbb5adb785505 (diff)
downloadcoredns-5e2beb3e845c05ec3edb79d4b9004cdb791cdced.tar.gz
coredns-5e2beb3e845c05ec3edb79d4b9004cdb791cdced.tar.zst
coredns-5e2beb3e845c05ec3edb79d4b9004cdb791cdced.zip
Add monitoring metrics docs to middleware/cache
Diffstat (limited to 'middleware')
-rw-r--r--middleware/cache/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/middleware/cache/README.md b/middleware/cache/README.md
index fe15d6878..5a6964ce8 100644
--- a/middleware/cache/README.md
+++ b/middleware/cache/README.md
@@ -22,6 +22,12 @@ middleware essentially doubles the memory load with no concealable increase of q
The minimum TTL allowed on resource records is 5 seconds.
+If monitoring is enabled (`prometheus` directive) then the following metrics are added:
+* coredns_cache_hit_count_total, and
+* coredns_cache_miss_count_total
+
+They both work on a per zone basis and just count the hit and miss counts for each query.
+
## Examples
~~~