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

# Mimir

> Connect Grafana Mimir for long-term Prometheus metrics storage during investigations.

Connecting Mimir lets Traversal query your long-term metrics storage during investigations.

## What Traversal reads

* **Metrics**: time-series data via PromQL instant and range queries
* **Labels**: label names and values used to scope queries to the right services and environments

## Setup

> [tab] Direct connection (recommended)
>
> Use this if Traversal or a Traversal Connector can reach your Mimir instance directly and you want to connect to it independently of Grafana.
>
> **1. Find your Mimir URL**
>
> Use your Mimir HTTP API endpoint. The URL should include the `/prometheus` path, for example, `https://mimir.yourcompany.com/prometheus`.
>
> For a private or cluster-internal address, see [Private network access](#private-network-access). You can also use the Via Grafana option.
>
> **2. Configure authentication (if required)**
>
> Mimir has no built-in authentication. Credentials depend on the proxy or gateway in front of your Mimir instance. Traversal supports bearer token or basic auth. If your Mimir instance is unauthenticated, leave the credentials blank.
>
> **3. Note your org ID (multi-tenant only)**
>
> If your Mimir deployment uses multi-tenancy, find your tenant/org ID. Traversal sends it as the `X-Scope-OrgID` header on every request.
>
> **4. Configure in Traversal**
>
> Go to **Integrations**, select **Mimir**, and enter:
>
> * Mimir URL (including `/prometheus` path)
> * Credentials (optional): bearer token or basic auth if required
> * Organization ID (optional): for multi-tenant deployments only

> [tab] Via Grafana
>
> If Mimir is configured as a datasource in your Grafana instance, Traversal can reach it through the Grafana datasource proxy. This is useful when Mimir is only accessible internally (for example, within a cluster).
>
> No additional setup is needed beyond the [Grafana integration](https://docs.traversal.com/integrations/grafana.md). Traversal auto-discovers Mimir and queries it using the same Grafana service account token.
>
> > [!NOTE]
> >
> > Multi-tenancy is handled automatically by Grafana when going through this path. You don't need to provide an org ID in Traversal.

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

* [Mimir HTTP API](https://grafana.com/docs/mimir/latest/references/http-api/)


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