integral() function computes the area under the curve per
unit of time of subsequent non-null records.
The curve is defined using
_time as the domain and record values as the range.
Function type: Aggregate
Output data type: Float
integral(unit: 10s, columns: ["_value"])
The time duration used when computing the integral.
Data type: Duration
A list of columns on which to operate.
Data type: Array of strings
from(bucket: "telegraf/autogen") |> range(start: -5m) |> filter(fn: (r) => r._measurement == "cpu" and r._field == "usage_system" ) |> integral(unit:10s)
Related InfluxQL functions and statements:
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods:
- Post in the InfluxData Community
- In the InfluxDB UI, click Feedback in the left navigation bar.