Common variable queries
*Flux functions: buckets(), , keep()*
List measurements
List all measurements in a specified bucket.
*Flux package: InfluxDB schema
Flux functions: *
schema.measurements(bucket: "bucket-name")
*Flux package: InfluxDB schema
Flux functions: *
List unique tag values
List all unique tag values for a specific tag in a specified bucket. The example below lists all unique values of the host
tag.
*Flux package:
**Flux functions:* schema.tagValues()
schema.tagValues(bucket: "bucket-name", tag: "host")
*Telegraf plugin:
**Flux package: InfluxDB schema
Flux functions:*
List Kubernetes pods
List all Kubernetes pods when using the Kubernetes Telegraf plugin.
*Telegraf plugin:
**Flux package: InfluxDB schema
Flux functions:*
schema.measurementTagValues(
bucket: "bucket-name",
measurement: "kubernetes_pod_container",
)
*Telegraf plugin: Kubernetes
**Flux package:
Flux functions:* schema.measurementTagValues()