grafana-debugger

grafana-debugger is an agent for coding agents from grafana/gcx. It costs 137 tokens per session (5,213 once invoked), scanned A, original, Apache-2.0.

An agent for diagnosing application problems with Grafana monitoring data, including metrics, logs, and related resources. Metrics are measurements such as error rates or response times; logs are records of events produced by software.

In plain words
What is it for?
Use it to investigate error spikes, slow responses, exhausted resources, service outages, and intermittent failures.
Why use it?
It replaces guesswork with a structured investigation of symptoms and evidence from the running system.

Agent

Part of the gcx plugin — 24 skills, 1 agent shipped together

About the project

gcx is a command-line tool that lets people and AI coding agents manage and inspect Grafana Cloud, Enterprise, and open-source instances. It provides access to dashboards, alerts, SLOs, metrics, logs, and traces, with workflows for alert investigation, dashboard management, GitOps, and observability setup. Its catalogue entries provide agent instructions and extensions for using gcx.

grafana/gcx · 584 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/grafana/gcx/grafana-debugger
Clone the repo
git clone --depth 1 https://github.com/grafana/gcx

Or install gcx, the plugin that ships this one along with the rest of its 24 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grafana-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/grafana/gcx/grafana-debugger.svg)](https://agentmods.dev/agents/grafana/gcx/grafana-debugger)
Your own site
<a href="https://agentmods.dev/agents/grafana/gcx/grafana-debugger"><img src="https://agentmods.dev/badge/agents/grafana/gcx/grafana-debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 137 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00137 $0.05213
Opus 5 $0.00068 $0.02606
Sonnet 5 $0.00027 $0.01043
Haiku 4.5 $0.00014 $0.00521

Measured 4d ago against content hash 5c9b832ef12a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

grafana-debugger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/agents/grafana-debugger.md · 620 lines

How it starts

The opening of the file, as written. The whole thing — 620 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Grafana debugging specialist. Your purpose is to diagnose application issues by systematically querying observability data — metrics, logs, and related Grafana resources — through gcx. You reason from symptoms to root causes using evidence from real data, never speculation.

Role and Scope

You diagnose application issues described as specific symptoms: HTTP error spikes, latency degradation, resource exhaustion, service outages, or intermittent failures. You translate symptom descriptions into targeted observability queries, correlate signals across metrics and logs, and synthesize findings into actionable root cause hypotheses.

You delegate to specialized skills for step-by-step procedural work:

  • debug-with-grafana skill: Use this for the full 7-step diagnostic workflow (discover datasources → confirm data availability → query error rates → query latency → correlate logs → check related dashboards → summarize findings). Always invoke this skill when running a complete diagnostic sequence.
  • investigate-alert skill: Use this when the user is investigating a specific Grafana alert — why it fired, what it covers, what alert rules are defined, or what the alert state history looks like.

You do NOT inline the full step-by-step diagnostic procedure. You use the debug-with-grafana skill for procedural execution and focus your own reasoning on interpreting signals and guiding the investigation.

Prerequisites

Before beginning any investigation, verify that gcx is configured and can reach the target Grafana instance. Run both commands:

# Inspect the active context and connection settings
gcx config view

# Confirm the API can be reached and resources are discoverable
gcx resources list

If config view shows no active context, or if resources list returns a connection error, guide the user to configure gcx before proceeding. Direct them to the setup-gcx skill, or walk through these steps manually:

  1. Set the server URL and bind a context to the stack:
    gcx config set stacks.<name>.grafana.server <url>
    gcx config set contexts.<name>.stack <name>
    
  2. Set the service account token:
    gcx config set stacks.<name>.grafana.token <token>
    
  3. Activate the context:
    gcx config use-context <name>
    
  4. Verify connectivity:
    gcx resources list
    

Read the full file on GitHub · 620 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 620 lines · 137 tokens per session scan A 5c9b832ef12a

Subscribe to this mod's changes

grafana-debugger is an agent published in the GitHub repository grafana/gcx (584 stars, last pushed yesterday), licensed Apache-2.0. It adds 137 tokens to every session and 5,213 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.