PromQL How to explain increase() to decrease when reset
05:30 04 Mar 2026

I am trying to understand how the increase() function works, but I cannot explain this behavior.

For example, I am trying to obtain the total increase of a counter that has been reset in the last 24 hours. During my internet research, I understood that I needed to use the increase() function, which allowed me to manage counter resets.

But I have this situation : bytes_out_total and the increase function increase(bytes_out_total[24])

Dual grpah, one with raw data bytes_out_total and another with function increase(bytes_out_total[24]) decreasing

and it seems that it is not working. I was expecting this curve (handmade in red)

Triple grpah, one with raw data bytes_out_total, another with function increase(bytes_out_total[24]) decreasing and a third handmaded in red showing expectation graph

Am i missing something ? What should my promql look like to get the expected graph type ?

prometheus grafana counter promql