I am new to prometheus metrics. I am exposing my application's all endpoints (application Rest endpoint as well as the 3rd party APIs endpoints which my application is using).
As expected, I am getting metrics under "http_server_requests_seconds*"* for my APIs and "http_client_requests_seconds*"* for 3rd party APIs which I am using in /actuator/prometheus
My Questions are:
- When I restart my server or redeploy my application, all metrics will reset to 0 and then fresh start will happen?
- If above statement is true, how we get metrics information from past. Ex : I restarted my application today, but in my grafana dashboard , I want to see application metrics from last month?
- If this metrics reset happens after each server restart or application redeploy, is there a way to avoid this? means via some configuration etc.