Skip to content

[Question] How to get all tag keys from some bucket using Flux DSL? #336

@mladen-djordjevic

Description

@mladen-djordjevic

Hello,

At the moment, I am able to get all tag keys using query function: https://github.com/influxdata/influxdb-client-java/blob/master/client/src/main/java/com/influxdb/client/QueryApi.java#L59
with parameter:
from(bucket: "telegraf/autogen") |> range(start: -30m) |> columns() |> keep(columns: ["_value"]) |> group() |> distinct()

Is there a better approach to get all unique tag keys from some bucket, ideally using Flux DSL builder?

Thank you in advance,
Mladen

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions