schema.measurementTagValues() function

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

  bucket: "example-bucket",
  measurement: "cpu",
  tag: "host"



Bucket to return tag values from for a specific measurement.

Data type: String


Measurement to return tag values from.

Data type: String


Tag to return all unique values from.

Data type: String

Function definition

package schema

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

Used functions: schema.tagValues()

Supported in the InfluxDB Cloud UI

The schema package can retrieve schema information from the InfluxDB Cloud user interface (UI), but not from the Flux REPL.

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: