from() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.12 is the most recent stable version of Flux.

The from() function retrieves data from an InfluxDB data source. It returns a stream of tables from the specified bucket. Each unique series is contained within its own table. Each record in the table represents a single point in the series.

Function type: Input
Output data type: Object

from(bucket: "telegraf/autogen")

// OR

from(bucketID: "0261d8287f4d6000")

Parameters

bucket

The name of the bucket to query.

Data type: String

bucketID

The string-encoded ID of the bucket to query.

Data type: String

Examples

from(bucket: "telegraf/autogen")
from(bucketID: "0261d8287f4d6000")

FROM