Docs

v2.0

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


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