On 25/05/2023 06:56, Yogita Bhardwaj wrote:
> I am using Prometheus counters in my project but the value of counter
> reset when service restart. how can I prevent counter reset while
> fetching data from Prometheus using http api. --
It is expected that counters will reset when a service restarts, so you
don't need to do anything. Prometheus handles counter resets
automatically when you are using functions like rate().
--
Stuart Clark