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 this to the API: /api/v1/query?query=rate%28up%5B2m%5D%29&time=1685087742.644 On Thursday, 25 May 2023 at 16:22:58 UTC+1 Yogita Bhardwaj wrote: > 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 <[email protected]> > 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 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. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7340ec03-c4b1-48c7-9eae-ef51c1aa145cn%40googlegroups.com.

