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:

DetailFluxInfluxQLSQLExample
URLhttp://influxdb.example.com:8086
Organizationmy-org
Default buckettelegraf
Tokenyour-influxdb-api-token
Databasetelegraf
Usergrafana_reader
Password••••••••

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:

Bash
curl -s -o /dev/null -w "%{http_code}" http://YOUR_INFLUXDB_HOST:8086/health

A 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:

  1. Open the InfluxDB UI or CLI.
  2. Create a new token with read permissions on the bucket you want to query.
  3. 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.


page 3 of 8