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

# Grafana

> Let your agents query Grafana Cloud metrics, logs, and traces, and read dashboards and incidents.

With the Grafana tool, your agents can query metrics, logs, and traces, and read dashboards and incidents in Grafana Cloud. Grafana builds and maintains this MCP server: an admin connects it once, then anyone can add it to an agent.

## What your agent can do in Grafana

Grafana maintains the list of actions, and it can change at any time. See [Grafana's MCP server documentation](https://grafana.com/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/) for the current list. The tools listed in **Spaces** > **Tools** > **Grafana** are the ones your agents can use.

## Before you start

* **In Dust:** you need to be an admin to connect Grafana.
* **In Grafana:** you need the **Assistant Cloud MCP User** role, and Grafana Assistant must be turned on for your stack. Connecting counts toward Grafana Assistant billing.

## Connect Grafana

> [!NOTE]
>
> Only workspace admins can connect Grafana.

**1. Open the tools of your workspace**

Go to **Spaces** > **Tools** and click **Add tools**.

**2. Pick Grafana**

Select **Grafana**, then click **Next**.

**3. Sign in**

Keep **Personal accounts**, selected by default, or pick **Shared account**. Click **Setup connection**, then sign in to Grafana Cloud, authorize your stack, and choose only the access your agents need.

## Add Grafana to an agent

**1. Open your agent in the Agent Builder**

Create an agent, or open one you can edit.

**2. Add the tool**

In **Capabilities and knowledge**, click **Add capabilities** and select **Grafana**.

**3. Say what to look at**

In the instructions, name the dashboards, data sources, or services the agent should check, and when it may create incidents or annotations.

By default, tools that read data run without asking (**Never ask**) or with a confirmation users can turn off (**Low**). Most tools that change Grafana, like `update_dashboard` or `create_incident`, ask for approval every time (**High**). So do `ask_assistant`, `query_clickhouse`, `query_influxdb`, and `query_sql`, since raw SQL queries can change data. Admins can change the level of each tool in **Spaces** > **Tools** > **Grafana** > **Tools & stakes**:

* **High:** needs explicit user approval.
* **Low:** users can completely disable confirmations.
* **Never ask:** runs automatically.

Tools that Grafana adds later start at **High** until an admin changes them.

## Related

> [card] [Preconfigured MCP servers](https://docs.dust.tt/docs/user-documentation/agents/tools/preconfigured-mcp-servers.md)
>
> All the third-party MCP servers you can connect.

> [card] [Personal vs Shared Credentials](https://docs.dust.tt/docs/user-documentation/admins/tools-management/personal-vs-shared-credentials.md)
>
> How each connection type works for tools.

> [card] [Adding an MCP server](https://docs.dust.tt/docs/user-documentation/admins/tools-management/adding-an-mcp-server.md)
>
> Add tools to your workspace and choose who can use them.


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