Use Grafana with InfluxDB

This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version. See the equivalent InfluxDB v2.7 documentation: Use Grafana with InfluxDB OSS.

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

The instructions in this guide require Grafana Cloud or Grafana v7.1+. For information about using InfluxDB with other versions of Grafana, see the Grafana documentation.

  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, hover over the gear icon to expand the Configuration section. Click Data Sources.
  5. Click Add data source.
  6. Select InfluxDB from the list of available data sources.
  7. On the Data Source configuration page, enter a name for your InfluxDB data source.
  8. Under Query Language, select one of the following:

Configure Grafana to use InfluxQL

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

  1. Under HTTP, enter the following:

    • URL: Your InfluxDB URL.

    • Access: Server (default)

  2. Under InfluxDB Details, enter the following:

  3. Provide a Min time interval (default is 10s).

  4. Click Save & Test. Grafana attempts to connect to InfluxDB and returns the result of the test.

Configure Grafana to use Flux

To query InfluxDB using Flux from Grafana, upgrade to InfluxDB 1.8.1+:

Was this page helpful?

Thank you for your feedback!

Set your InfluxDB URL

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.