> ## Documentation Index
> Fetch the complete documentation index at: https://docs.traversal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Grafana

> Connect Grafana to query dashboards, metrics, logs, traces, and alerts during investigations.

Connecting Grafana lets Traversal query your dashboards, metrics, logs, and alerts during investigations.

## What Traversal reads

* **Dashboards**: panel definitions and queries
* **Alerts**: Grafana-managed alert rules and their states
* **Data source proxy**: metrics, logs, and traces queried through Grafana's data source proxy

## Setup

**1. Copy your Grafana URL**

Find your Grafana server URL (for example, `https://your-instance.grafana.net` or your self-hosted URL).

> [!WARNING]
>
> Use the base URL only, not a link to a specific dashboard (for example, `.../d/<uid>/...`). A dashboard link doesn't work and doesn't produce an obvious error.

**2. Choose an authentication method**

> [tab] Bearer token (recommended)
>
> 1. Log in to your Grafana instance
>
> 2. Go to **Administration** → **Service Accounts**
>
> 3. Create a new service account with the **Viewer** role
>
> 4. Click **Add service account token** and copy the token value. Grafana doesn't show it again
>
> > [!WARNING]
> >
> > If your Grafana instance uses SSO (Okta, Azure AD, Google, etc.), use a service account token. Username and password don't work for API access.

> [tab] Username and password
>
> Use the username and password of a user with read access to the dashboards and data sources Traversal should query.
>
> > [!WARNING]
> >
> > Username and password don't work if your Grafana instance uses SSO (Okta, Azure AD, Google, etc.). Use a service account token instead.

**3. Configure in Traversal**

Go to **Integrations**, select **Grafana**, and enter your URL and credentials.

## Private network access

If the service endpoint isn't directly reachable by Traversal (as is common with self-hosted services), deploy a [Traversal Connector](https://docs.traversal.com/architecture/connector.md) in a network that can reach it. When configuring the integration, select that connector under **Network Access Needed**. The service endpoint doesn't need public internet exposure.

See [Set up the Traversal Connector](https://docs.traversal.com/setup/connector.md) for deployment and network requirements.

## More information

* [Grafana service accounts](https://grafana.com/docs/grafana/latest/administration/service-accounts/)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.