---
title: "Explore InfluxDB data in Grafana | Grafana Labs"
description: "Run a sample query in Grafana Explore to verify your InfluxDB data is accessible."
---

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

# Explore InfluxDB data in Grafana

In this milestone, you verify that your InfluxDB data source is working by running a query in Grafana’s Explore.

1. In the navigation menu, click **Explore**.
2. From the data source dropdown at the top-left, select your InfluxDB data source.
3. In the query editor, enter a sample query to retrieve data. The syntax depends on which query language you selected when configuring the data source.
   
   **Flux example:**
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   from(bucket: "telegraf")
     |> range(start: -1h)
     |> filter(fn: (r) => r._measurement == "cpu")
     |> filter(fn: (r) => r._field == "usage_idle")
     |> aggregateWindow(every: 1m, fn: mean)
   ```
   
   **InfluxQL example:**
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   SELECT mean("usage_idle") FROM "cpu" WHERE time > now() - 1h GROUP BY time(1m)
   ```
   
   **SQL example:**
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   SELECT DATE_BIN(INTERVAL '1 minute', time) AS time,
          AVG(usage_idle) AS usage_idle
   FROM cpu
   WHERE time > NOW() - INTERVAL '1 hour'
   GROUP BY 1
   ORDER BY 1
   ```
   
   **Tip:** Replace the measurement and field names with values that match your data.
4. Click **Run query** to execute the query.
   
   You should see time series data displayed in the results panel. If you see results, your InfluxDB data source is working correctly.

### Verify successful data access

After running your query, you should see:

- Time series data displayed as a graph or table
- No connection errors or timeouts
- Data that matches what you expect from your InfluxDB instance
- The ability to modify the query and run different queries

**Congratulations!** You’ve successfully connected your InfluxDB instance to Grafana Cloud and verified that data is accessible.
