Documentation

schema.measurementTagKeys() function

The schema.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/schema"

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

Parameters

bucket

Bucket to return tag keys from for a specific measurement.

Data type: String

measurement

Measurement to return tag keys from.

Data type: String

Function definition

package schema

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

Used functions: schema.tagKeys()


New! Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: