---
title: "Verify InfluxDB is accessible | Grafana Labs"
description: "Confirm that your InfluxDB instance is running and gather the credentials needed to connect from Grafana."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

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

Expand table

| Detail             | Flux | InfluxQL | SQL | Example                            |
|--------------------|------|----------|-----|------------------------------------|
| **URL**            | ✓    | ✓        | ✓   | `http://influxdb.example.com:8086` |
| **Organization**   | ✓    |          |     | `my-org`                           |
| **Default bucket** | ✓    |          |     | `telegraf`                         |
| **Token**          | ✓    |          | ✓   | `your-influxdb-api-token`          |
| **Database**       |      | ✓        | ✓   | `telegraf`                         |
| **User**           |      | ✓        |     | `grafana_reader`                   |
| **Password**       |      | ✓        |     | `••••••••`                         |

This path demonstrates connecting with Flux. If you’re using InfluxQL or SQL, refer to [Configure the InfluxDB data source](/docs/grafana/latest/datasources/influxdb/configure/) for the settings specific to your query language.

### Verify connectivity

Confirm InfluxDB is reachable by running this command from your terminal:

Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```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)](/docs/grafana-cloud/connect-externally-hosted/private-data-source-connect/) 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.
