CZ-NIC / knot-resolver

Knot Resolver - resolve DNS names like it's 2024
https://www.knot-resolver.cz/
Other
355 stars 59 forks source link

[knot-resolver 6] Add new metric #116

Open Jean-Daniel opened 1 week ago

Jean-Daniel commented 1 week ago

A simple feature request. It should be straightforward to add a metrics to expose the actual number of entries in the cache (as returned by cache.count()).

I find it interesting to monitor how fast the cache is filling, and helping sizing it.

vcunat commented 1 week ago

Sounds good to me, except that for this I'd rather expect cache.stats().usage_percent.

Jean-Daniel commented 1 week ago

Right. I guess all stats in cache.stats() may be exposed ;-)