InfluxDB Docs

v1.measurementTagKeys() function

The v1.measurementTagKeys() function returns a list of tag keys for a specific measurement. The return value is always a single table with a single column, _value.

import "influxdata/influxdb/v1"

v1.measurementTagKeys(
  bucket: "example-bucket",
  measurement: "cpu"
)

Parameters

bucket

The bucket from which to return tag keys for a specific measurement.

Data type: String

measurement

The measurement from which to return tag keys.

Data type: String

Function definition

measurementTagKeys = (bucket, measurement) =>
  tagKeys(
    bucket: bucket,
    predicate: (r) => r._measurement == measurement)

Used functions: tagKeys()