Documentation

Use Grafana with InfluxDB Enterprise

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

Required

  • 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.
  • To use Flux, use InfluxDB Enterprise 1.8.1+ and enable Flux in your InfluxDB data node configuration file.
  1. Set up an InfluxDB Enterprise cluster.
  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 Enterprise URL or load balancer URL.

      http://localhost:8086/
      
    • 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 Enterprise and returns the result of the test.

Configure Grafana to use Flux

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

  1. Ensure Flux is enabled in InfluxDB Enterprise data nodes.

  2. Under Connection, enter the following:

    • URL: Your InfluxDB Enterprise URL or load balancer URL.

      http://localhost:8086/
      
    • Organization: Provide an arbitrary value.

    • Token: Provide your InfluxDB Enterprise username and password using the following syntax:

      # Syntax
      username:password
      
      # Example
      johndoe:mY5uP3rS3crE7pA5Sw0Rd
      

      We recommend enabling authentication on all InfluxDB Enterprise clusters. If you choose to leave authentication disabled, leave this field blank.

    • Default Bucket: Provide a default database and retention policy combination using the following syntax:

      # Syntax
      database-name/retention-policy-name
      
      # Examples
      example-db/example-rp
      telegraf/autogen
      
    • Min time interval: Grafana minimum time interval.

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


Was this page helpful?

Thank you for your feedback!


Introducing InfluxDB Clustered

A highly available InfluxDB 3.0 cluster on your own infrastructure.

InfluxDB Clustered is a highly available InfluxDB 3.0 cluster built for high write and query workloads on your own infrastructure.

InfluxDB Clustered is currently in limited availability and is only available to a limited group of InfluxData customers. If interested in being part of the limited access group, please contact the InfluxData Sales team.

Learn more
Contact InfluxData Sales

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.

Flux is going into maintenance mode and will not be supported in InfluxDB 3.0. This was a decision based on the broad demand for SQL and the continued growth and adoption of InfluxQL. We are continuing to support Flux for users in 1.x and 2.x so you can continue using it with no changes to your code. If you are interested in transitioning to InfluxDB 3.0 and want to future-proof your code, we suggest using InfluxQL.

For information about the future of Flux, see the following: