Query all measurements with flux

Hello!
Im new to influx and wondering how one would query all measurements within the influx database using flux

Im currently using influxdb connected to a grafana dashboard.
I can query specific measurements using a variable called ‘thing’

|> filter(fn: (r) => r[“_measurement”] =~ /${thing}/)

All my measurements contain the same fields.
After googling for some time i cant find out how one would query all measurements?

Thanks
/Max

Hi @MaxJ,
Welcome to the community! You can just remove the filter altogether:

data = from(bucket: "bucket")
    |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
    |> yield(name: "_editor_composition")

1 Like