Verify InfluxDB is accessible
Before you connect Grafana to InfluxDB, confirm that your InfluxDB instance is running and that you have the information Grafana needs to establish a connection.
Gather connection details
The credentials you need depend on which query language you plan to use. Collect the relevant values before proceeding:
This path demonstrates connecting with Flux. If you’re using InfluxQL or SQL, refer to Configure the InfluxDB data source for the settings specific to your query language.
Verify connectivity
Confirm InfluxDB is reachable by running this command from your terminal:
curl -s -o /dev/null -w "%{http_code}" http://YOUR_INFLUXDB_HOST:8086/healthA 200 response confirms that InfluxDB is healthy and accepting connections.
If InfluxDB is behind a firewall: You’ll need Private Data Source Connect (PDC) to allow Grafana Cloud to reach it. Set up PDC before continuing.
Create an API token (if needed)
If you don’t have a read-only API token:
- Open the InfluxDB UI or CLI.
- Create a new token with read permissions on the bucket you want to query.
- Copy the token. You’ll need it in the configuration milestone.
Security tip: Use a token scoped to the minimum permissions Grafana needs (read access to specific buckets).
In the next milestone, you’ll add InfluxDB as a data source in Grafana Cloud.