content/enterprise_influxdb/v1/tools/grafana.md
Use Grafana or Grafana Cloud to visualize data from your InfluxDB Enterprise cluster.
[!Note] {{< influxdb-version-detector context="grafana" >}}
[!Note]
Required
- The instructions in this guide require Grafana Cloud or Grafana v10.3+. For information about using InfluxDB with other versions of Grafana, see the Grafana documentation.
- To use Flux, use InfluxDB 1.8.1+ and enable Flux in your InfluxDB data nodes.
If running Grafana locally, enable the newInfluxDSConfigPageDesign feature flag to use the latest InfluxDB data source plugin.
{{< expand-wrapper >}} {{% expand "Option 1: Configuration file (recommended)" %}}
Add the following to your grafana.ini configuration file:
[feature_toggles]
enable = newInfluxDSConfigPageDesign
Configuration file locations:
/etc/grafana/grafana.ini/opt/homebrew/etc/grafana/grafana.ini<GRAFANA_INSTALL_DIR>\conf\grafana.ini{{% /expand %}}
{{% expand "Option 2: Command line" %}}
Enable the feature flag when starting Grafana:
{{< code-tabs-wrapper >}} {{% code-tabs %}} Linux macOS (Homebrew) Windows {{% /code-tabs %}} {{% code-tab-content %}}
grafana-server --config /etc/grafana/grafana.ini \
cfg:default.feature_toggles.enable=newInfluxDSConfigPageDesign
{{% /code-tab-content %}} {{% code-tab-content %}}
/opt/homebrew/opt/grafana/bin/grafana server \
--config /opt/homebrew/etc/grafana/grafana.ini \
--homepath /opt/homebrew/opt/grafana/share/grafana \
--packaging=brew \
cfg:default.paths.logs=/opt/homebrew/var/log/grafana \
cfg:default.paths.data=/opt/homebrew/var/lib/grafana \
cfg:default.paths.plugins=/opt/homebrew/var/lib/grafana/plugins \
cfg:default.feature_toggles.enable=newInfluxDSConfigPageDesign
{{% /code-tab-content %}} {{% code-tab-content %}}
grafana-server.exe --config <GRAFANA_INSTALL_DIR>\conf\grafana.ini `
cfg:default.feature_toggles.enable=newInfluxDSConfigPageDesign
{{% /code-tab-content %}} {{< /code-tabs-wrapper >}}
{{% /expand %}} {{< /expand-wrapper >}}
For more information, see Configure feature toggles in the Grafana documentation.
Visit your Grafana Cloud user interface (UI) or, if running Grafana locally, start Grafana and visit http://localhost:3000 in your browser.
[!Note]
Grafana 12.2+
The instructions below are for Grafana 12.2+ with the
newInfluxDSConfigPageDesignfeature flag enabled. This introduces the newest version of the InfluxDB core plugin. The updated plugin includes SQL support for InfluxDB 3-based products such as {{< product-name >}}, and the interface dynamically adapts based on your product and query language selection in URL and authentication.
[!Note]
Using Grafana Cloud with a local InfluxDB instance
If you need to keep your database local, consider running Grafana locally instead of using Grafana Cloud, as this avoids the need to expose your database to the internet.
To use InfluxDB running on your private network with Grafana Cloud, you must configure a private data source for Grafana Cloud.
[!Note]
Query language support
- InfluxQL is supported in InfluxDB Enterprise v1.8.x and later.
- Flux is supported in InfluxDB Enterprise v1.8.1 and later.
- SQL is only supported in InfluxDB 3. For more information, see how to get started with InfluxDB 3 Enterprise.
In the URL and authentication section, configure the following:
https://{{< influxdb/host >}}The fields in this section change based on your query language selection in URL and authentication.
{{< tabs-wrapper >}}
{{% tabs %}}
InfluxQL
Flux
{{% /tabs %}}
{{% tab-content %}}
When you select InfluxQL as the query language, configure the following:
{{< img-hd src="/img/grafana/enterprise-influxdb-v1-grafana-influxql.png" alt="InfluxQL configuration for InfluxDB Enterprise 1.x" />}}
Click Save & Test. Grafana attempts to connect to InfluxDB Enterprise and returns the result of the test.
<!---------------------------- END INFLUXQL CONTENT --------------------------->{{% /tab-content %}} {{% tab-content %}}
<!----------------------------- BEGIN FLUX CONTENT ---------------------------->When you select Flux as the query language, configure the following:
Ensure Flux is enabled in your InfluxDB Enterprise data nodes.
Configure the database settings:
{{< img-hd src="/img/grafana/enterprise-influxdb-v1-grafana-flux.png" alt="Flux configuration for InfluxDB Enterprise 1.x" />}}
Click Save & Test. Grafana attempts to connect to InfluxDB Enterprise and returns the result of the test.
<!------------------------------ END FLUX CONTENT ----------------------------->{{% /tab-content %}} {{< /tabs-wrapper >}}
With your InfluxDB connection configured, use Grafana to query and visualize time series data.
To learn about query management and inspection in Grafana, see the Grafana Explore documentation.
For a comprehensive walk-through of creating visualizations with Grafana, see the Grafana documentation.