---
title: Grafana MCP
description: >-
  Bits queries Loki logs and Prometheus metrics from Grafana to surface relevant
  signals during investigations.
breadcrumbs: Docs > Integrations > Grafana MCP
---

# Grafana MCP
Integration version1.0.0
## Overview{% #overview %}

The Datadog–Grafana integration is an MCP-based integration that enables Datadog to securely access a Grafana MCP server instance.

Through this integration, the Bits AI SRE agent is granted access to designated Grafana data sources and observability signals exposed through the available MCP tools. This includes access to error logs, slow request data, dashboards, Grafana Sift investigations, and telemetry from Loki and Prometheus.

Note that this integration does not support the Grafana Tempo MCP tools. There is a separate Grafana Tempo MCP integration that supports this.

During the Preview period, Bits AI SRE investigations that include one or more Grafana tool calls will not be billed.

## Setup{% #setup %}

### Prerequisites{% #prerequisites %}

Your Grafana instance must be hosted on Grafana Cloud and available from the public internet.

### Generate a Grafana service account token{% #generate-a-grafana-service-account-token %}

1. Follow the Grafana instructions for [creating a service account](https://grafana.com/docs/grafana/latest/administration/service-accounts/#create-a-service-account-in-grafana).
1. Follow the Grafana instructions for [adding a service account token](https://grafana.com/docs/grafana/latest/administration/service-accounts/#add-a-token-to-a-service-account-in-grafana).
1. You will need this service account token to configure the Datadog connection.

### Connect your Grafana MCP account to Datadog{% #connect-your-grafana-mcp-account-to-datadog %}

1. Add your Grafana instance URL and service account token:
| Parameters                       | Description                                                                                                                |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Account name                     | Choose a name that will help you identify this account later.                                                              |
| Grafana instance URL             | This is your base Grafana Cloud instance URL. Example: [https://mytenant.grafana.net/](https://mytenant.grafana.net/)      |
| Description of the account scope | Provide additional context that will help Bits AI SRE understand which aspects of your infrastructure this account covers. |
| Grafana service account token    | The service account token you generated in the previous step.                                                              |
1. Click the **Save** button to save your settings.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

TBD

### Service Checks{% #service-checks %}

TBD

### Events{% #events %}

TBD

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
