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

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0d139bb9-e5d0-0f6d-6649-fdfb5a8d8ef7%40Jahingo.com.

Reply via email to