Documentation

Use Grafana with InfluxDB OSS

Use Grafana or Grafana Cloud to visualize data from your InfluxDB 2.7 instance.

The instructions in this guide require Grafana Cloud or Grafana 10.3+.

  1. Start InfluxDB.

  2. Sign up for Grafana Cloud or download and install Grafana.

  3. Visit your Grafana Cloud user interface (UI) or, if running Grafana locally, start Grafana and visit http://localhost:3000 in your browser.

  4. In the left navigation of the Grafana UI, open the Connections section and select Add new connection.

  5. Select InfluxDB from the list of available data sources and click Add new data source.

  6. On the Data Source configuration page, enter a name for your InfluxDB data source.

  7. In the Query Language drop-down menu, select one of the query languages supported by InfluxDB 2.7 (Flux or InfluxQL):

    SQL is only supported in InfluxDB v3.

Configure Grafana to use Flux

With Flux selected as the query language in your InfluxDB data source, configure your InfluxDB connection:

  1. Under HTTP, enter the following:

  2. Under InfluxDB Details, enter the following:

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

Use Grafana with InfluxDB and Flux

Configure Grafana to use InfluxQL

To query InfluxDB 2.7 with InfluxQL, find your use case below, and then complete the instructions to configure Grafana:

Installed a new InfluxDB instance

To configure Grafana to use InfluxQL with a new install of InfluxDB 2.7, do the following:

  1. Authenticate with InfluxDB 2.7 tokens.
  2. Manually create DBRP mappings.

Upgraded from InfluxDB 1.x to 2.x

To configure Grafana to use InfluxQL when you’ve upgraded from InfluxDB 1.x to InfluxDB 2.7 (following an official upgrade guide):

  1. Authenticate using the non-admin v1 compatible authentication credentials created during the upgrade process.
  2. Use the DBRP mappings InfluxDB automatically created in the upgrade process (no action necessary).

Manually migrated from InfluxDB 1.x to 2.x

To configure Grafana to use InfluxQL when you’ve manually migrated from InfluxDB 1.x to InfluxDB 2.7, do the following:

  1. If your InfluxDB 1.x instance required authentication, create v1 compatible authentication credentials to match your previous 1.x username and password. Otherwise, use InfluxDB v2 token authentication.
  2. Manually create DBRP mappings.

View and create InfluxDB v1 authorizations

View and create InfluxDB DBRP mappings

Configure your InfluxDB connection

With InfluxQL selected as the query language in your InfluxDB data source settings:

  1. Under HTTP, enter the following:

  2. Configure InfluxDB authentication:

  3. Click Save & Test. Grafana attempts to connect to the InfluxDB 2.7 data source and returns the results of the test.

Use Grafana with InfluxDB and Flux

Query and visualize data

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

For more information about using Grafana, see the Grafana documentation. If you’re just learning Flux, see Get started with Flux.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered