Documentation

schema.measurements() function

Flux 0.88.0+

The schema.measurements() function returns a list of measurements in a specific bucket. The return value is always a single table with a single column, _value.

import "influxdata/influxdb/schema"

schema.measurements(bucket: "example-bucket")

Parameters

bucket

Bucket to retrieve measurements from.

Function definition

package schema

measurements = (bucket) =>
  tagValues(bucket: bucket, tag: "_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.


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.