Filtering with Flux in InfluxDB

InfluxDB
Flux
filtering
querying
How does filtering works with Flux in InfluxDB?
Published

November 15, 2020

The filter() function behaves similarly to the WHERE command in SQL.

from(bucket: "trial_bucket")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "service_org_duration")