instant increase

57 views
Skip to first unread message

VASSEUR Thomas

unread,
Aug 28, 2022, 6:52:07 AM8/28/22
to Prometheus Users
Hi,

I graph all my counter with the idelta function but i read that it was meant for gauge only.
Indeed, when my counters reset it do weird things.

I saw that `increase` was the function i was looking for, but, i don't find an idelta equivalent.

Am i missing something ? Does an instant increase exists ?

Thanks

Brian Candler

unread,
Aug 28, 2022, 7:29:42 AM8/28/22
to Prometheus Users
The question is, why do you want idelta() on counters - or, why is increase() not suitable for your use case?  What do these counters represent, and what sort of result are you looking for?

Perhaps you want to do something like this:

    (foo - foo offset 2m) >= 0

This will give you the amount that metric 'foo' has increased, compared to its value 2 minutes previously. For a counter reset it will give no value, since negative values are filtered out.
Reply all
Reply to author
Forward
0 new messages