I'm pushing custom metrics to Prometheus using micrometer. So, prometheus scrapes /actuator/prometheus
and stores data. But the problem is, when I redeploy my applications, all the values are resetting to 0.
Ex: I'm pushing the request count to prometheus. The request count reached to 5. For some reason I deployed a newer version of my SpringBoot application. No request count will start from 0 as actuator is in-memory. So, my prometheus graph is falling down to 0 and starting again.
How can I fix this issue?