I have a springboot app instrumented with AppD, Micrometer and Prometheus.
Now I am using open source redis for in-memory distributed caching but i couldn't get the required statistics from it. please suggest.
- A single redis cache is used to cache multiple methods with different ttl and other config.
The metrics i am interested in is as below.
- cache hit / miss ratio for a particular cached method. Redis cli returns these values at an agregation level which also counts the reads from read replica's.
- Cache distribution timinings.
- Evacuations / expired keys and counts.
so far i couldn't figure out a way to do this. is there a way springboot / redis supports this or any other way in which this can be achieved.