I have an app that contains 2 dozen of spring batch cron jobs.There is no rest controller as it is an analytics app and it runs daily and read data from db, process it, and then store aggregated data in another db.I want to have spring inbuilt metrics on the jobs using micrometer and push them to Prometheus .As my
Tag: prometheus
How to remove no longer valid Gauges
I use the Prometheus Java Client to export session information of my application. We want to show how long sessions have been idle. The problem is that we have a maximum of 1000 sessions and sessions are removed after a certain period. Unfortunately they do not disappear from Prometheus: My code looks like this: I tried to do sessionInactivity.clear() during