influxdata/flux

Unable to list field keys for a specific measurement in Grafana 9.4.7 with Flux

MatinF opened this issue · 0 comments

I have been using older versions of Grafana together with InfluxDB (Flux) for my dashboards.

As part of this, I have set up Variables to list all field keys for a specific measurement as below:

image

This worked in my previous setup, but no longer works in 9.4.7 - does the query need to be changed to be compatible with more recent versions?

I also tried below query instead, but it also does not work:

import "influxdata/influxdb/schema"

schema.measurementFieldKeys(
    bucket: "example-bucket",
    measurement: "example-measurement",
)