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](https://i.sstatic.net/lGXDhBk9.png)
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](https://i.sstatic.net/O9XV6Ri1.png)
Am i missing something ? What should my promql look like to get the expected graph type ?