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, column: "_value")
The time duration used when computing the integral.
Data type: Duration
The column on which to operate.
Data type: String
from(bucket: "example-bucket") |> range(start: -5m) |> filter(fn: (r) => r._measurement == "cpu" and r._field == "usage_system" ) |> integral(unit:10s)
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support or submit feedback, the following resources are available:
- Post in the InfluxData Community.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.
For our InfluxDB Cloud customers, InfluxData Support is also available.