PROMQL deriv()

243 views
Skip to first unread message

Rodolphe Ghio

unread,
Jan 7, 2021, 9:56:07 AM1/7/21
to Prometheus Users
Hi everyone !
First of all I wish you a happy new year.

I would like to use the deriv() function but this function needs a range vector so my query should look like this: deriv(<metric_name>[<time_range>]). But I don't really understand how can I choose an acurate time_range in square brackets.
Can someone help me to find out how can choose the right time_range ?

King regards,
GHIO Rodolphe



Julien Pivotto

unread,
Jan 7, 2021, 10:31:18 AM1/7/21
to Rodolphe Ghio, Prometheus Users
Please look at
https://www.robustperception.io/what-range-should-i-use-with-rate

or
https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/


>
>
>
> --
> 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-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9f285f7f-3afc-4a5b-b2de-ffb8a2dafe7dn%40googlegroups.com.


--
Julien Pivotto
@roidelapluie

Rodolphe Ghio

unread,
Jan 7, 2021, 10:35:21 AM1/7/21
to Prometheus Users
Thanks a lot !
That was exactly what I was looking for !
Have a great day !
Reply all
Reply to author
Forward
0 new messages