Reputation: 136
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
Upvotes: 0
Views: 56