Docs

v2.0

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()


Bug Reports and Feedback

Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation.

Submit feedback in the InfluxData Community