How Grafana Labs uses AI agents to debug its own incidents
Grafana Labs runs its own AI agents, Grafana Assistant and Assistant Investigations, on the incidents and queries of the engineers who build and operate Grafana Cloud.
- 3.5x fasterTime to root cause, Investigations against the on-call team1, 8Measured
- 8 minutesTime for Investigations to find the root cause1Measured
- 30 minutes or moreTime saved finding one log query2Estimate
Grafana LabsUnited StatesEnterprise softwareIn production since 2025Who built it Built in-houseHuman oversight Assists peopleUse case Alert triage and investigationScenario Production alert triage and incident investigationBusiness function IT operationsOrganization Scale-upAI types Generative AI, Agentic AI, Conversational AIUsers thousands of active usersTeam size more than 90 contributors
- Who built it
- Built in-house
- Human oversight
- Assists people
- Use case
- Alert triage and investigation
- Scenario
- Production alert triage and incident investigation
- Business function
- IT operations
- Organization
- Scale-up
- AI types
- Generative AI, Agentic AI, Conversational AI
- Users
- thousands of active users
- Team size
- more than 90 contributors
tl;drIn one Grafana Cloud incident, AI agents found the root cause 3.5x faster than the on-call team.See the results
Grafana Labs uses Grafana Assistant, the AI agent built into Grafana Cloud, in the daily engineering work of its own teams2. Its on-call engineers also run Assistant Investigations, a mode in which specialist AI agents investigate an incident in parallel1.
In one internal Grafana Cloud incident, described in January 2026, Investigations found the root cause in 8 minutes. That was 20 minutes before the on-call team reached the same conclusion, or 3.5x faster1. Engineers’ own accounts credit Assistant with saving time on queries, one of them 30 minutes or more on a single log query2.
In July 2026, Grafana Labs made Grafana Assistant Investigations generally available, after testing it on its own incidents7, 1.
Before the deployment
Grafana Labs’ on-call engineers investigated incidents by hand. When alerts fired, the on-call engineer acknowledged them on Slack, and the team began hypothesizing about the cause1. Engineers then dug through dashboards and logs to test each idea1.
- Recall: As Grafana Labs scaled, it got harder to remember all the metrics and labels across data sources2.
- Query syntax: Engineers looked up PromQL functions they rarely used, such as label_replace or group_left, in the docs2.
- Waiting on colleagues: A solutions engineer asked on Slack how to search all log lines in Loki, and the answer took time and didn’t scale2.
- AI-written code: Almost every team now runs some AI-authored code in production, which is faster to ship but easier to misunderstand1.
Earlier AI features in Grafana were single LLM calls, such as an explanation of a flame graph4. Such a model can’t see dashboards, query data sources or tell which service has an active incident, so Grafana Labs built agents that can4.
What was built
Grafana Assistant is a chat agent in a Grafana Cloud sidebar that finds data, creates dashboards and answers questions in natural language4. Investigations is its mode for incidents that span services and signals5. Agents, Grafana Cloud and engineers divide the work:
- Lead investigator agent: Plans the investigation and forms hypotheses about what went wrong5, 7.
- Specialist agents: Query metrics, logs, traces, profiles and SQL in parallel, proving or disproving each hypothesis5, 7.
- Reporter agent: Compiles the findings into a structured report with a summary, a timeline and an activity log5.
- Grafana Cloud: Runs the workflow under the user’s Grafana identity and data source permissions, within existing role-based access control (RBAC)5, 6.
- Engineers: Steer the run in plain language and disprove or reopen hypotheses. Next steps such as a rollback, a restart or a delete show Needs approval5, 6.
Outside incidents, Grafana Labs engineers use Assistant to explain log lines and traces, write PromQL, and bulk-edit dashboard queries and panels2.
“Instead of piecing together spans and timings on our own, Assistant translated the trace into plain language, highlighted where time was being lost, and even correlated the data with other spikes in latency we were seeing in metrics.”
Rollout
Grafana Assistant itself went from idea to general availability in nine months8. By 2026, the team behind it had grown from about nine people to more than 90 contributors3.
Technology and architecture
Assistant works by tool calling: the language model decides which tool to call and pulls live data from Grafana into its answer4. Grafana Labs built the open source Grafana MCP Server for this, which exposes dashboard search, Prometheus queries and incident management as tools4.
| Layer | What they used | Role |
|---|---|---|
| Agent orchestration | Grafana Assistant Investigations | Runs a lead investigator, specialist agents and a reporter that test hypotheses and write a root-cause report1, 5 |
| Task agent | Specialist agents | Query metrics, logs, traces and profiles in parallel to prove or disprove each hypothesis1, 5, 7 |
| Chat interface | Grafana Assistant | Chat agent in the Grafana Cloud sidebar that queries data, explains telemetry and edits dashboards2, 4 |
| Language model | Large language model with tool calling | Decides which tool to call and writes answers from the live data the tools return4 |
| Tools and actions | Grafana MCP Server | Exposes dashboard search, Prometheus queries and incident management as tools for the agents4 |
| Data platform and storage | Prometheus, Loki, Tempo, and Pyroscope | Hold the metrics, logs, traces and profiles that the specialist agents query1, 5 |
| Knowledge content | Assistant memories | Keep a weekly-refreshed map of services, dependencies, monitoring and top metrics3, 5 |
| Knowledge content | Skills | Hold runbooks and triage guides that the agent looks up when a task needs them3 |
| Monitoring | Grafana AI Observability | Tracks tokens, errors and costs of Grafana Assistant and scores sampled conversations with evaluators3, 7 |
| Offline evaluation | o11y-bench | Open benchmark for observability agents, with tasks, environment and grading logic3 |
| Developer tools | Coding agents | Read benchmark transcripts and code, map weak spots and propose changes to prompts and tools3 |
Context the agents start with
The team found that context decides how useful the agent is, but the context window is not unlimited3. It manages context in three ways:
- Assistant memories: A weekly scan of Prometheus, Loki and Tempo finds the services, groups them into domains, and records where each runs, its dependencies and its top metrics3.
- Skills: Runbooks and triage guides that the agent finds and runs when a question needs them, even if the user never names them3.
- Token budget: Descriptions of less-used tools load only when needed, long conversations are compacted, and large tool outputs are summarized3.
API responses reach the model as natural sentences rather than raw JSON, which cut token use by up to 4x4.
Data inputs
- Alerts and problem statements: The alert or the engineer’s description of the symptom, impact, services and time range1, 6.
- Telemetry: Metrics, logs, traces and profiles in Prometheus, Loki, Tempo, and Pyroscope, plus SQL data sources5.
- Deploy history: Recent deploy diffs, which the agents compare with query volume and latency spikes1.
Integrations
- Grafana dashboards: Assistant searches dashboards and creates or bulk-edits panels and queries2, 4.
- Grafana IRM: Assistant handles incidents in Grafana’s incident response tool, and webhooks return investigation findings to the incident or alert group3, 6.
- SQL tables: Engineers use Assistant to sift internal SQL tables of usage data2.
How one incident flowed through the system
- Alerts fired on Grafana Cloud. The on-call engineer acknowledged them on Slack1.
- The on-call engineers reverted deploys, checked SQL logs and restarted affected clusters1.
- Investigations ran in the background at the same time. Its agents compared query volume, latency spikes and recent deploy diffs1.
- Metrics agents checked MySQL connection pool metrics, logging agents checked deployment timing, and tracing agents analyzed database transactions1.
- The report flagged the /cohort-analysis endpoint, with a confidence score of 0.91 and remediation steps1.
- The cause was an AI-generated SQL query whose unbounded join saturated database connections and throttled CPU1.
How the team tests and improves the agent
- AI component
- Data
- Trigger or control
- Handoff to people
- Feedback
- Inferred, not documented
- Benchmark: The agent gets three attempts at each observability task. Deterministic checks, an LLM judge and fact-based rubrics grade each run3.
- Fact-based rubrics: A known good query runs in a controlled environment, and its result is compared with the agent’s answer3.
- o11y-bench: The team released its benchmark as an open benchmark for observability agents3.
- Coding agents: They read thousands of transcripts and propose changes. Engineers review, validate and merge them3.
- Grafana AI Observability: Evaluators score 20% of user-visible Assistant generations for groundedness, prompt injection and length. An alert fires if the pass rate falls under 80%3.
Grafana Labs built Grafana AI Observability, generally available as Grafana Agent Observability since July 2026, because it needed to observe Assistant once usage spiked past expectations7, 3.
Results
| Metric | Before | After | Scope and timeframe |
|---|---|---|---|
| Time to root cause, against the on-call team | On-call team’s own investigation | 3.5x faster1, 8 | One internal Grafana Cloud incident |
| Time for Investigations to find the root cause | On-call team: 20 minutes later | 8 minutes1 | Same incident |
| Time saved finding one log query | 30 minutes or more2 | One engineer’s log query |
- Root-cause speed: The comparison is between Investigations and the on-call engineers working the same internal incident in parallel1.
- Another internal incident: Assistant’s trace analysis pointed engineers to a new feature that exhausted the Assistant backend’s database connections, memory and CPU2.
- Daily use: Assistant is a go-to tool for Grafana Labs developers who debug on-call issues, help customers or write PromQL2.
Lessons learned
Running the agents beside the on-call team gave Grafana Labs a direct comparison on a real incident. Investigations reached the root cause before the engineers, who spent most of their time confirming whether their own deploy caused the alerts1.
The two accounts of that incident differ in what the agent did. A year-end post says Investigations found and resolved the incident 3.5 times faster8. The detailed account credits it with finding the root cause while engineers reverted deploys and restarted clusters1.
Consistency is the agent’s main documented weakness. It passed 82% of benchmark tasks given three tries, with a much bigger drop when every attempt had to pass3. “But even when you literally tell the AI exactly what to do, it still doesn’t consistently do it,” said Yasir Ekinci, principal software engineer, at GrafanaCON 20263.
Growth made the agent harder to change. As Assistant got larger, its behavior got less predictable and changes got harder3. The team answered with the benchmark loop and production evaluations, and keeps the final call on each change with engineers3.
The incident itself came from AI-generated code. The SQL query passed staging, CI and a thorough review before it broke the production database1. “AI should allow you to move at 10x velocity, not produce incidents at 10x the rate,” said Mat Ryer, senior director of AI7.
The figures are Grafana Labs’ own, about its own product: one internal incident, its own benchmark, and engineers’ estimates of time saved1, 2, 3.
Case study scorecard
Sources by publication date
- Organization 6
- Vendors and partners 1
- Press, academic, and regulators 1
Build this solution yourself
Analysis
What you need
- Telemetry the agents can query: Investigations depends on metrics, logs, traces and profiles in data sources that specialist agents query directly. Check that your signals sit where an agent can reach them5.
- Written knowledge of your environment: Memories and skills give the agents a service map and runbooks. You need current runbooks and triage guides to load3.
- A test suite graded against real data: Grafana Labs compares agent answers with known good queries. You need tasks with known answers before you change prompts with confidence3.
- Engineers who keep the decision: The agents recommend, and people approve risky steps. Your on-call process must leave the call with an engineer1, 6.
Reference architecture
Alert triage and investigation
Gathers the evidence behind each alert that your monitoring and detection tools raise, and tells whoever is on duty what it found.
- Operational data platform (used in this case study)
- Intake agent (used in this case study)
- Connectors to operational tools
- Investigation agents (used in this case study)
- Language model (used in this case study)
- Knowledge retrieval
- Diagnostic checks and actions (used in this case study)
- Action limits
- Channel to the people on duty
- Outcome record (used in this case study)
Others who built it
- Gap Inc.: Gap's Devin AI agent finds and fixes ecommerce site issues. Gap estimates its Devin agent has recovered millions in sales that downtime could have cost.
- Lloyds Banking Group: Lloyds' AI agents top 90% accuracy on debit card fraud. Lloyds' fraud agents reached more than 90% decision accuracy after 10,600 live cases.
- Verizon: Verizon's AI agents fix network faults in under two minutes. Verizon's network agents resolve issues in less than two minutes that once took engineers hours.
- AT&T: How AT&T's AI avoided 3.1 million technician dispatches. AT&T's incident AI avoided 3.1 million dispatches and more than 12 million hours of downtime.
- China Mobile: China Mobile's NOC agents cut network repair time by 30%. Average repair time for network faults and complaints fell 30% once China Mobile's agents went live.
- Verisk: How Verisk uses AWS DevOps Agent to triage production alerts. Weekly alerts fell about 59% and incident resolution time nearly 50% at Verisk.
Cite this case study
Enterprise AI Case Studies. "How Grafana Labs uses AI agents to debug its own incidents." Updated Dec 2, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-100-ai-incident-investigation-grafana-labs/
@misc{csai-er-100,
author = {{Enterprise AI Case Studies}},
title = {{How Grafana Labs uses AI agents to debug its own incidents}},
year = {2026},
note = {Updated 2026-12-02},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-100-ai-incident-investigation-grafana-labs/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
A tale of two incident responses: How our AI assistant found the root cause 3.5x faster
Supporting excerpts (18)
A series of alerts were triggered, our on-call engineer acknowledged it on Slack, and the rest of the team quickly began hypothesizing about the potential culprit.
Grafana Assistant Investigations, an AI-powered tool we'd been developing internally to accelerate multi-step incident investigations in Grafana Cloud, quickly got to work doing the same task.
So while our on-call engineers were digging through dashboards and logs, the AI assistant quietly spun up its own background investigation. Eight minutes later, it found the root cause, 20 minutes before our on-call team came to the same conclusion.
Fast forward to today, and Assistant Investigations is now available to all Grafana Cloud users in public preview, giving you the same functionality to assist, not replace, your engineering team
It coordinates a swarm of specialized AI agents to analyze your observability stack, diving into your metrics, logs, traces, and profiles to find anomalies and build up a picture of your system.
In the end, it turned out that a small part of one of my PRs, an AI-generated SQL query, was indeed the culprit. I'd written it to analyze Assistant usage. It worked fine in staging, passed CI, and even got reviewed thoroughly, but in production, it broke the database.
And to be fair, most of the time was spent determining if it was indeed our deploy that was causing the alerts to go off.
created an unbounded join that ballooned under load, saturating database connections and throttling CPU.
Our on-call engineers reverted deploys, checked SQL logs, and restarted affected clusters.
It looked at logs, metrics, traces, and profiles to compare query volume, latency spikes, and recent deploy diffs. Ultimately, it accurately flagged the /cohort-analysis endpoint as the likely culprit.
metrics agents checked MySQL connection pool metrics, logging agents validated deployment timing, and tracing agents analyzed database transaction patterns. Working in parallel, they built a complete picture of what went wrong, 3.5x faster than our on-call team.
Confidence scoring (0.91 confidence, in this case)
Actionable remediation steps with monitoring guidance
Almost every team now has some kind of AI-authored code running in production.
It's faster to ship, but easier to misunderstand.
In practice, that's not sustainable—and problematic code will slip through, whether written by AI or humans.
We built Assistant Investigations to scale your understanding, not just your monitoring.
AI SRE tools don't replace engineers; they amplify them. Humans still make the calls, but now we make them faster, with better data and fewer assumptions.
- Source 2:
Debug, query, and build faster with AI: How we use Grafana Assistant at Grafana Labs
Supporting excerpts (12)
Assistant is becoming a go-to companion for developers right here at Grafana Labs, whether they're debugging on-call issues, helping customers, or trying to remember tricky PromQL syntax.
As Grafana Labs has scaled, it is harder to remember all the metrics and labels across data sources.
I wanted to find customers in a specific region running a certain version of Grafana, but I was stuck on how to get there. Grafana Assistant gave me the explanation I needed in seconds, saving me 30 minutes or more.
I knew the data existed somewhere in our metrics or logs, but finding it would have taken time with either Grafana or the AWS CLI. As a last attempt, I asked the Assistant and it worked. It gave me the number right away and saved me about an hour of digging.
Instead of piecing together spans and timings on our own, Assistant translated the trace into plain language, highlighted where time was being lost, and even correlated the data with other spikes in latency we were seeing in metrics.
That quickly pointed us to the root cause: a newly released feature that consumed an unprecedented amount of resources, causing our databases to run out of connections, memory, and CPU.
This one was a bit funny because Assistant actually helped me debug an issue with the Assistant backend services itself.
The assistant pinpointed the exact field with the invalid value, explained why it caused the error, and suggested how to fix it.
Assistant makes it easier by handling tasks like bulk editing queries or panels, saving time and cutting down on repetitive work.
I use the Assistant a lot for query help, especially with PromQL syntax I never remember like label_replace or group_left. Instead of digging through docs, I just describe what I want and get the correct query right where I am writing it.
I once asked on Slack how to search across all log lines in Loki, and while I eventually got a good answer, it took time and was not scalable.
We're using a lot of SQL tables internally to look at our usage data. Grafana Assistant helps me to sift through these tables quickly
- Source 3:
Scaling Grafana Assistant: Context, confidence, and AI observability
Supporting excerpts (33)
We now have thousands of active users. We've merged nearly 4,000 PRs and we went from a single team of about nine people to more than 90 contributors across Grafana.
it can help you with your k6 load test, or even, like, deal with some of the IRM incidents.
As Assistant got larger, its behavior got less predictable and making changes got harder as well.
Memories is a new capability where Assistant regularly, weekly, scans your observability data sources such as Prometheus, Loki and Tempo. It discovers services running in your environment, groups them into logical domains. And for each of these domains, it keeps persistent memory of where things are running, how are they monitored, what are their dependencies and top metrics.
So next time when you ask Assistant question, it does not have to start from zero.
So Skills allows you to capture this knowledge in Assistant and you can even import them.
This is often captured in your round book, triage guides, internal APIs or documentation.
Assistant can search this shared knowledge base. It can find anything relevant, pull in the right runbook even if the user never mentioned it by name.
So that means like a senior member of your team can write a triage guide once and then every other on-call engineer on the team can then benefit from that same expertise.
But we should also acknowledge that context window is not unlimited.
For those tools that are less commonly used, we use deferred loading. It means that we load tool descriptions and instruction on demand only when needed.
if you have a long conversation that is close to hitting context window limit, we use context compact compaction.
So we use summarization to keep only what's relevant, what's important, and then output it in a summarized concise way. Again, helping us save tokens.
we gave an agent three attempts to solve each task, and then like it got a score if it passed at least one side of three. So that's a pass rate at three And at 82%, that looked like a good score.
So every three times, and then you see like a much bigger drop.
But even when you literally tell the AI exactly what to do, it still doesn't consistently do it.
The self-improvement loop is powered by coding agents such as cloud code paired with our internal tools and custom agent skills. They help us walk through the loop, go through large amount of transcripts and code, and make the whole improvement process easier to run.
We have deterministic checks. So if we ask for a dashboard with four panels, we can check did it create exactly four panels?
If it mentions a trace ID, we can check does that trace ID actually exist?
So here we use an LLM judge and we use task specific criteria, like did it follow the right instructions? Did it find the right root cause?
So here we define for a task, we define what a known good query is. We run that query against the controlled environment, get the result, and then compare to what the agent did.
So yesterday we announced that we're introducing o11y-bench, right? It's our first open benchmark for Observability agents.
It has a task, the environment, the grading logic and even our own results.
Now once we have these results, we can then run them through another coding agent, right? These are like thousands and thousands of transcripts.
So the coding agent proposes, the benchmark verifies and then we can focus on reviewing, validating, and emerging those changes.
With Grafana AI Observability, we've built something that we needed, something that helps us understand our agents including Grafana Assistant in production.
This is where we analyze our AI agent, including Assistant and answer questions such as how many tokens are being used, what is the error rate time to the first token, or very important metric, what are costs associated with all of my agents?
here we want to make sure that Assistant grounds its answers in real data and that it does not hallucinate.
here we are evaluating whether users are trying to do prompt injection on our Assistant.
And in this case, 20% of Grafana Assistant generations that are user visible are going to be evaluated by our evaluators.
And in this case, if pass rate falls under 80%, we will get notified.
we should turn this into test case scenario, bring it into our self improvement loop and make sure that we fix this in future iterations.
Better agents and better agentic systems are not just about bigger, larger, more expensive models, it's also about providing more relevant context.
- Source 4:
Going beyond AI chat response: How we're building an agentic system to drive Grafana
Supporting excerpts (11)
you provide the LLM with a flamegraph, and it gives you a human-readable explanation of the performance bottleneck. It's a single action that leads to a single outcome.
It can't see your dashboards, it can't query your data sources, and it certainly can't tell you which of your services has an active incident right now.
The key technology that unlocks this is based on the Model Context Protocol (MCP) and tool calling. This allows an LLM to not only generate text but also to call predefined functions or APIs.
we created the open source Grafana MCP Server, which exposes core Grafana functionality—searching dashboards, querying Prometheus, managing incidents—as a set of tools that any MCP-compatible AI can use.
Announced at GrafanaCON 2025, Grafana Assistant deeply integrates with the Grafana ecosystem, bringing your relevant observability context with you in an easy-to-use sidebar.
allowing you to go places, find things, create a dashboard, or ask questions about your data, all using natural language.
We test our agents against a set of scenarios in a controlled Grafana environment to ensure that every change improves quality and doesn't cause regressions.
APIs often return structured data like JSON.
by pre-processing API responses into more natural, semantically rich sentences, we can reduce token usage by up to 4x, which lowers cost, decreases latency, and actually improves the LLM's performance.
We have started with single, monolithic agents that try to do everything.
A central coordinator agent receives the user's request and delegates it to a specialized agent—like a dashboard agent, a query agent, or a support agent. This modular design is easier to debug and extend, and it makes the entire system more robust.
- Source 5:
Introducing Assistant Investigations: now in public preview
Supporting excerpts (8)
let specialist agents explore metrics, logs, traces, profiles, and even SQL in parallel. The workflow runs inside Grafana Cloud, respects your permissions, and keeps findings grounded in your telemetry.
A lead investigator plans the work while Prometheus, Loki, Tempo, and Pyroscope specialists gather evidence. A reporter compiles results into a structured report you can trust.
You get a live activity feed during the run, then a finished artifact with a Summary, a detailed Report, a Timeline, and an Activity log.
You steer with plain language, add @ mentions for services or data sources, and correct scope as you learn. Use thumbs up or thumbs down to nudge agents toward the right paths.
Discovery-powered infrastructure memories keep service names, dependencies, and label hints current so agents start with the right map.
Agents fan out across Prometheus, Loki, Tempo, Pyroscope, and SQL data sources, then return a focused narrative you can paste into incident channels or tickets.
The Assistant operates within your existing RBAC, routes calls through Grafana Cloud, and encrypts data in transit and at rest. Your organization's data is not used to train external models. Sub-processors are configured for zero retention, and usage is logged for auditing and quality.
soft limit of 50 investigations per user per month
- Source 6:
Supporting excerpts (7)
A problem statement with the symptom, impact, affected services, and time range
When you start an investigation yourself, including from an alert, Assistant uses your Grafana identity and data source permissions.
Next steps that could cause an outage, lose data, or change access or security, for example, a rollback, a restart, or a delete, show Needs approval.
the report groups its hypotheses as Leading, Contributing, Open, and Unlikely.
Click a source citation, for example, Source 1, to open its panel in Sources and inspect the query, time range, and data source.
Before a report exists, select Disprove or Reopen on a hypothesis to draft a correction.
IRM webhooks: Configure incident or alert-group webhooks and assign Grafana teams in AI > Settings > Investigations. Findings return to the incident or alert group.
- Source 7:
Grafana Assistant expands with AI agents for investigations, automation, and observability
Supporting excerpts (5)
Grafana Labs has announced the general availability of six AI capabilities, extending Grafana Assistant into an agentic operations layer that detects, investigates, and remediates production issues.
When an incident happens, Grafana Assistant Investigations forms hypotheses about what went wrong and swarms over the problem to chase down the leads in the data, proving or disproving each one.
Engineers can stay in the driver's seat and steer the investigation themselves, or step back and wait the few minutes it takes for Grafana Assistant to finish and hand back a conclusion.
It was born out of necessity: Grafana Labs needed to observe Grafana Assistant itself once usage started spiking past expectations.
AI should allow you to move at 10x velocity, not produce incidents at 10x the rate
- Source 8:
The year in AI at Grafana Labs
Supporting excerpts (2)
In fact, it recently managed to find and resolve an internal incident 3.5 times faster than our own on-call engineers!
we also took one of our most exciting new features (Grafana Assistant) from idea to general availability in just nine months!
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.