I have a metric in my application (using micrometer) and I have a counter that increases each time a method is executed. Of course, this counter is reset only if the app is restarted.
This metric is exposed to Prometheus and I can query it in the UI.
Now the question. Is there a way to get a difference on that counter between 2 dates?
Use case:
- Today, the counter has value 5000
- 2 days ago, it had value 4000
- So, I need a query that displays the value 1000, which is the difference between the 2 dates.
Thank you for your time.
Regards,
Marcos