1.3 KiB
1.3 KiB
title | description | weight | aliases | menu | canonical | v2 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Query data with Flux | Guides that walk through both common and complex queries and use cases for Flux. | 3 |
|
|
/{{< latest "influxdb" "v2" >}}/query-data/flux/ | /influxdb/v2.0/query-data/flux/ |
The following guides walk through both common and complex queries and use cases for Flux.
{{% note %}}
Example data variable
Many of the examples provided in the following guides use a data
variable,
which represents a basic query that filters data by measurement and field.
data
is defined as:
data = from(bucket: "db/rp")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "example-measurement" and r._field == "example-field")
{{% /note %}}
Flux query guides
{{< children type="anchored-list" pages="all" >}}
{{< children pages="all" readmore="true" hr="true" >}}
{{< influxdbu title="Intro to Basic Flux Elements" summary="Learn the basics about Flux, InfluxDB’s functional scripting language in this free InfluxDB University course." action="Take the course" link="https://university.influxdata.com/courses/intro-to-basic-flux-elements-tutorial/" >}}