Documentation

v1.measurementTagKeys() function

v1.measurementTagKeys() was deprecated in Flux v0.88.0 in favor of schema.measurementTagKeys().

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

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 v1

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

Used functions: v1.tagKeys()


New! Cloud or OSS?

InfluxDB OSS 2.0 release candidate

InfluxDB OSS v2.0.rc includes breaking changes that require a manual upgrade from all alpha and beta versions. For information, see:

Upgrade to InfluxDB OSS v2.0.rc