Non negative derivative on prometheus?

4,394 views
Skip to first unread message

Xabier Larrakoetxea

unread,
Jan 18, 2016, 3:16:02 AM1/18/16
to Prometheus Developers
Hi!

I'm having a problem using deriv function, because when I do deployments a big valley is rendered on my graph, you can see on the image:




In graphite you would use nonNegativeDerivative to overcome this issue, Is there a way to do something similar in prometheus?

Ben Kochie

unread,
Jan 18, 2016, 3:22:56 AM1/18/16
to Xabier Larrakoetxea, Prometheus Developers
Is this a rate of a counter metric?  Why not use rate() or irate() instead?  Graphite is missing a proper counter reset handling rate function, which is why you have to use nonNegativeDerivative.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthias Rampke

unread,
Jan 18, 2016, 3:35:17 AM1/18/16
to Ben Kochie, prometheus-developers, Xabier Larrakoetxea

And if you really need to just drop all negative values,

<any expression> >= 0

will do the trick. It works on a per-timeseries level.

/mr

Xabier Larrakoetxea

unread,
Jan 18, 2016, 6:16:34 AM1/18/16
to Prometheus Developers, sup...@gmail.com, slo...@gmail.com
Awesome! Thank you both of you. Actually I'm using rating to get that type of information. On the other hand I dind't think of using operators!

Once again thank you for your fast responses!

El lunes, 18 de enero de 2016, 9:35:17 (UTC+1), Matthias Rampke escribió:

And if you really need to just drop all negative values,

<any expression> >= 0

will do the trick. It works on a per-timeseries level.

/mr

On Jan 18, 2016 09:22, "Ben Kochie" <sup...@gmail.com> wrote:
Is this a rate of a counter metric?  Why not use rate() or irate() instead?  Graphite is missing a proper counter reset handling rate function, which is why you have to use nonNegativeDerivative.
On Mon, Jan 18, 2016 at 9:16 AM, Xabier Larrakoetxea <slo...@gmail.com> wrote:
Hi!

I'm having a problem using deriv function, because when I do deployments a big valley is rendered on my graph, you can see on the image:




In graphite you would use nonNegativeDerivative to overcome this issue, Is there a way to do something similar in prometheus?

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages