increase() function calculates the cumulative sum of non-negative differences
between subsequent values.
A main use case is tracking changes in counter values which may wrap over time
when they hit a threshold or are reset.
In the case of a wrap/reset, we can assume that the absolute delta between two
points will be at least their non-negative difference.
Columns to use in the operation.
Default is piped-forward data (
For each input table with
increase() outputs a table with
n - 1 rows.
The following example uses data provided by the
to show how
increase() transforms data.
import "sampledata" sampledata.int() |> increase()
View input and output
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.