Re: [prometheus-users] Prometheus counter reset

2023-05-26 Thread Brian Candler
By sending a PromQL query that uses rate, e.g. *rate(up[2m])* ... with suitable URL escaping. In fact, if you go to Prometheus' built-in web interface, turn on your browser's developer console, and enter that expression into the PromQL browser, you'll see that behind the scenes the web UI sends

Re: [prometheus-users] Prometheus counter reset

2023-05-25 Thread Yogita Bhardwaj
How can I apply rate in this ? 'http://localhost:9090/api/v1/query?query=up&time=2015-07-01T20:10:51.781Z' On Thu, May 25, 2023 at 8:41 PM Stuart Clark wrote: > On 25/05/2023 15:59, Yogita Bhardwaj wrote: > > How can i apply rate or increase while using http api. > You just need to include it

Re: [prometheus-users] Prometheus counter reset

2023-05-25 Thread Stuart Clark
On 25/05/2023 15:59, Yogita Bhardwaj wrote: How can i apply rate or increase while using http api. You just need to include it in the query you are sending the Prometheus API. -- Stuart Clark -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group

Re: [prometheus-users] Prometheus counter reset

2023-05-25 Thread Yogita Bhardwaj
How can i apply rate or increase while using http api. On Thu, 25 May, 2023, 7:52 pm Stuart Clark, wrote: > 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

Re: [prometheus-users] Prometheus counter reset

2023-05-25 Thread Stuart Clark
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,

[prometheus-users] Prometheus counter reset

2023-05-24 Thread Yogita Bhardwaj
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. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubs