Skip to content

Feature Request - Add support for transpiling a "SHOW TAG VALUES" query #5

@Illutax

Description

@Illutax

For creating template variables inside Grafana one can create variables, which are templated with a set of available values.

In InfluxQL one would use

SHOW TAG VALUES FROM "<measurement>" WITH KEY IN ("<prefered_tag>")

For Flux I found

from(bucket: "<bucket-name>")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn:(r) => r._measurement == "<measurement>")
|> pivot(rowKey:["_time"], columnKey: ["_field"], valueColumn: "_value")
|> group()
|> distinct(column: "<prefered_tag>")

to have the same effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions