---
title: "Kiwi for Grafana"
description: "Have the agent on a Kiwi step query Prometheus and Loki through Grafana and link the dashboard panel it checked, using the Grafana MCP server."
canonical: "https://kiwiflow.io/integrations/grafana"
---

# Kiwi for Grafana

Have the agent on a Kiwi step query Prometheus and Loki through Grafana and link the dashboard panel it checked, using the Grafana MCP server.

- Your agent works in Grafana through its own connection. Kiwi does not call Grafana and never holds its credentials.
- A workflow skill can list Grafana among the tools it requires. When you supply your agent's available tools to a skill check and Grafana is not among them, the check reports `SK15-UNSUPPORTED-TOOL`.
- A project Admin can add links to Grafana, with notes, under Connections and bind them to the steps that use them. The agent reads them with `list_connections`.
- The agent can report the tools and plugins it ran with, including its Grafana connection, with `report_configuration`.
- The agent submits links to its work in Grafana as the step's outputs. People review them, and sign-off stays with the people your workflow names.

## What your agent can do in Grafana

- Run PromQL queries against Prometheus data sources and LogQL queries against Loki.
- Search dashboards, read the queries behind a panel and build a link to a dashboard or panel.
- List alert rules and their current state.
- Look up incidents in Grafana Incident and who is on call in Grafana OnCall.

## Set up

### 1. Connect your agent to Kiwi

Add Kiwi's hosted MCP server, `https://kiwiflow.io/mcp`, to your coding agent.

- [Coding agents](https://kiwiflow.io/integrations#agent)
- [Quickstart](https://docs.kiwiflow.io/quickstart#connect-your-agent)

### 2. Connect your agent to Grafana

Run the Grafana MCP server where your agent runs. The credentials stay with your agent.

```
uvx mcp-grafana
```

- [Grafana documentation](https://grafana.com/docs/grafana/latest/developer-resources/mcp/)

### 3. Example skill

Publish instructions like these as a workflow skill that lists Grafana among its required tools.

```
Take the alert name and the time window from the step's inputs.
In Grafana, run the alert rule's PromQL query over that window and read the
Loki logs that carry the same labels.
Submit a link to the dashboard panel and a short summary as the outputs.
If the data source returns no data, report a blocker to the run's Owner.
Do not edit or silence alert rules.
```

## More monitoring and incidents integrations

- [Kiwi for Sentry](https://kiwiflow.io/integrations/sentry.md): Have the agent on a Kiwi step read the Sentry issue behind a bug, with its stack trace and events, before it fixes the code, through Sentry's MCP server.
- [Kiwi for Datadog](https://kiwiflow.io/integrations/datadog.md): Have the agent on a Kiwi step check Datadog logs, traces and monitors for the service it changed, through Datadog's remote MCP server.
- [Kiwi for New Relic](https://kiwiflow.io/integrations/new-relic.md): Have the agent on a Kiwi step run NRQL queries and check how a release changed an application in New Relic, through New Relic's MCP server.
- [Kiwi for PagerDuty](https://kiwiflow.io/integrations/pagerduty.md): Have the agent on a Kiwi step read a PagerDuty incident, add its findings as a note and find who is on call, through PagerDuty's MCP server.
- [Kiwi for Dynatrace](https://kiwiflow.io/integrations/dynatrace.md): Have the agent on a Kiwi step investigate a Dynatrace problem with DQL queries and cite what it found, through the Dynatrace MCP server.
- [Kiwi for Honeycomb](https://kiwiflow.io/integrations/honeycomb.md): Have the agent on a Kiwi step query Honeycomb traces and run BubbleUp on slow requests, through Honeycomb's MCP server.
- [Kiwi for incident.io](https://kiwiflow.io/integrations/incident-io.md): Have the agent on a Kiwi step read an incident.io incident, post updates to it and create follow-ups, through incident.io's remote MCP server.

- [Get started](https://kiwiflow.io/get-started)
- [Read the setup guide](https://docs.kiwiflow.io/other-tools)
