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"
schema.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 schema
measurementTagValues = (bucket, measurement, tag) =>
tagValues(
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.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.