increase() function

increase() returns the cumulative sum of non-negative differences between subsequent values.

The primary use case for increase() is tracking changes in counter values which may wrap overtime when they hit a threshold or are reset. In the case of a wrap/reset, increase() assumes that the absolute delta between two points is at least their non-negative difference.

Function type signature
(<-tables: stream[A], ?columns: [string]) => stream[B] where A: Record, B: Record
For more information, see Function type signatures.



List of columns to operate on. Default is ["_value"].


Input data. Default is piped-forward data (<-).


Normalize resets in counter metrics

import "sampledata"
    |> increase()

View example input and ouput

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.