Closed DawnAleax closed 10 months ago
Everything's working fine.
root@OpenWrt:~# curl -v --silent http://127.0.0.1:9091/metrics 2>&1 | grep mosdns_cache
# HELP mosdns_cache_hit_total The total number of queries that hit the cache
# TYPE mosdns_cache_hit_total counter
mosdns_cache_hit_total{tag="cache_0"} 269207
# HELP mosdns_cache_lazy_hit_total The total number of queries that hit the expired cache
# TYPE mosdns_cache_lazy_hit_total counter
mosdns_cache_lazy_hit_total{tag="cache_0"} 199433
# HELP mosdns_cache_query_total The total number of processed queries
# TYPE mosdns_cache_query_total counter
mosdns_cache_query_total{tag="cache_0"} 282179
# HELP mosdns_cache_size_current Current cache size in records
# TYPE mosdns_cache_size_current gauge
mosdns_cache_size_current{tag="cache_0"} 6959
debug日志没有lazy_cache hit 只有lazy_cache update