bigtable.from() function

The bigtable.from() function is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

The bigtable.from() function retrieves data from a Google Cloud Bigtable data source.

Function type: Input

import "experimental/bigtable"

  token: "mySuPeRseCretTokEn",
  project: "exampleProjectID",
  instance: "exampleInstanceID",
  table: "example-table"



The Google Cloud IAM token to use to access the Cloud Bigtable database.

For more information, see the following:

Data type: String


The project ID of the Cloud Bigtable project to retrieve data from.

Data type: String


The instance ID of the Cloud Bigtable instance to retrieve data from.

Data type: String


The name of the Cloud Bigtable table to retrieve data from.

Data type: String


The example below uses InfluxDB secrets to populate sensitive connection credentials.

import "experimental/bigtable"
import "influxdata/influxdb/secrets"

bigtable_token = secrets.get(key: "BIGTABLE_TOKEN")
bigtable_project = secrets.get(key: "BIGTABLE_PROJECT_ID")
bigtable_instance = secrets.get(key: "BIGTABLE_INSTANCE_ID")

  token: bigtable_token,
  project: bigtable_project,
  instance: bigtable_instance,
  table: "example-table"

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: