What happened:
Upgraded coredns from 1.6.5 to 1.6.6
What you expected to happen:
Cache plugin metrics should stay the same.
How to reproduce it (as minimally and precisely as possible):
docker run -d --name coredns --volume=/Users/u/coredns/:/root/ -p 53:53/udp -p 9153:9153/tcp coredns/coredns:1.6.6 -conf /root/Corefiledig -t A google.com @127.0.0.1curl localhost:9153/metrics --raw -s | grep coredns_cacheAnything else we need to know?:
Last version that successfully increased this counter and emitted seems to be coredns 1.6.5.
Environment:
.:53 {
errors
health
prometheus :9153
forward . /etc/resolv.conf
cache 30
}
curl 127.0.0.1:9153/metrics --raw -s | grep coredns_cache
# HELP coredns_cache_size The number of elements in the cache.
# TYPE coredns_cache_size gauge
coredns_cache_size{server="dns://:53",type="denial"} 0
coredns_cache_size{server="dns://:53",type="success"} 1
curl 127.0.0.1:9153/metrics --raw -s | grep coredns_cache
# HELP coredns_cache_misses_total The count of cache misses.
# TYPE coredns_cache_misses_total counter
coredns_cache_misses_total{server="dns://:53"} 1
# HELP coredns_cache_size The number of elements in the cache.
# TYPE coredns_cache_size gauge
coredns_cache_size{server="dns://:53",type="denial"} 0
coredns_cache_size{server="dns://:53",type="success"} 1
/close
Most helpful comment
/close