schema.measurementTagKeys() function returns a list of tag keys for a specific measurement.
The return value is always a single table with a single column,
import "influxdata/influxdb/schema" schema.measurementTagKeys( bucket: "example-bucket", measurement: "cpu" )
Bucket to return tag keys from for a specific measurement.
Measurement to return tag keys from.
package schema measurementTagKeys = (bucket, measurement) => tagKeys( bucket: bucket, predicate: (r) => r._measurement == measurement )
Used functions: schema.tagKeys()
Supported in the InfluxDB Cloud UI
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 Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.