Documentation

v1.measurementTagValues() function

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

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

import "influxdata/influxdb/v1"

v1.measurementTagValues(
  bucket: "example-bucket",
  measurement: "cpu",
  tag: "host"
)

Parameters

bucket

Bucket to return tag values from for a specific measurement.

Data type: String

measurement

Measurement to return tag values from.

Data type: String

tag

Tag to return all unique values from.

Data type: String

Function definition

package v1

measurementTagValues = (bucket, measurement, tag) =>
  tagValues(
    bucket: bucket,
    tag: tag,
    predicate: (r) => r._measurement == measurement
  )

Used functions: v1.tagValues()


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