Flux is a functional data scripting language designed for querying, analyzing, and acting on data.
Flux design principles
Flux takes a functional approach to data exploration and processing, but is designed to be usable, readable, flexible, composable, testable, contributable, and shareable.
The following example returns the average CPU usage per minute over the last hour.
from(bucket:"example-bucket") |> range(start:-1h) |> filter(fn:(r) => r._measurement == "cpu" and r.cpu == "cpu-total" ) |> aggregateWindow(every: 1m, fn: mean)
For more information about Flux syntax, packages, and functions, see:
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.