knot-resolver icon indicating copy to clipboard operation
knot-resolver copied to clipboard

[knot-resolver 6] Add new metric

Open Jean-Daniel opened this issue 1 year ago • 2 comments

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.

Jean-Daniel avatar Sep 24 '24 19:09 Jean-Daniel

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

vcunat avatar Sep 26 '24 11:09 vcunat

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

Jean-Daniel avatar Sep 26 '24 21:09 Jean-Daniel