InfluxDB Docs

Use Grafana with InfluxDB 2.0

Use the Grafana Flux Data Source plugin to connect Grafana to InfluxDB 2.0 or InfluxDB Cloud 2.0.

The Grafana Flux Data Source plugin is currently in beta.

  1. Sign up for InfluxDB Cloud 2.0 or Start InfluxDB 2.0 OSS.
  2. Download and install Grafana.
  3. Install the Grafana Flux Data Source plugin manually or with grafana-cli (installed with Grafana).

    grafana-cli plugins install grafana-influxdb-flux-datasource

    Download the latest release of the Flux Datasource Plugin into the Grafana data/plugins directory and unzip it.

  4. Start Grafana and visit http://localhost:3000 in your browser.

  5. In the left navigation of the Grafana user interface (UI), hover over the gear icon to expand the Configuration section. Click Data Sources.

  6. Click Add data source.

  7. Select Flux (InfluxDB) [BETA] from the list of available plugins.

Configure your InfluxDB 2.0 connection

  1. Enter a name for your Flux datasource.
  2. Under HTTP, enter your InfluxDB URL.
  3. Under Auth, select With Credentials.
  4. Under InfluxDB 2.0.0 Details, enter your organization name or organization ID, default bucket, and authentication token.

    For information about retrieving your organization name and ID, see View organizations. For information about viewing your authentication token, see View tokens.

  5. Click Save & Test. Grafana attempts to connect to the InfluxDB 2.0 datasource and returns the results of the test.

Query and visualize data

With your InfluxDB connection configured, use Grafana and Flux to query and visualize time series data stored in InfluxDB 2.0 or InfluxDB Cloud 2.0.

Grafana documentation. If you’re just learning Flux, see Getting started with Flux.

New! Cloud or OSS?