admin管理员组

文章数量:1124550

I am working with grafana and am trying to allow a user to display a select number of fields/measurements to display.

I can do

from(bucket:"my-bucket")
    |> range(...)
    |> map(fn: (r) => ({
        _value: r._measurement +":" + r._field
    })
    |> unique()

However, I don't like the idea of querying everything ideally I want to use

schema.measurements(bucket:"my-bucket")

and schema.fieldKeys(bucket:"my-bucket", measurement:<measure>) but I can't figure out how to "chain" them together

本文标签: influxdbInflux Db Flux query to return all field values for every measurementStack Overflow