Is there a functionality using which we can get the difference in the values of counter samples within the time interval, while handling counter reset case and excluding the extrapolate functionality?
We tried using the increase() function, but it returns an extrapolated result. We have observed that the difference between the actual increase and the extrapolated result is considerably high.
Example:
If we are calculating the increase in a metric "node_disk_read_bytes_total" every 5 mins, with prometheus scrape interval set as 1 min:
Result of the increase function:
Our requirement is a function which:
> Is there a functionality using which we can get the difference in the values of counter samples within the time interval, while handling counter reset case and excluding the extrapolate functionality?