InfluxDB Docs

v1.measurementTagValues() function

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

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

Data type: String

measurement

The measurement from which to return tag values.

Data type: String

tag

The tag from which to return all unique values.

Data type: String

Function definition

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

Used functions: tagValues()