Grafana's gcx and MCP Server Reach GA for Telemetry-Driven Agent Development
Claudio Masolo ยท rss ยท 2026-08 source โ Reader ๐ฅ๏ธ
Agentic TestingCoding AgentsCognitive DebtFeedback LoopsMCP (Model Context Protocol)Pull Requests & Async Code ReviewTelemetry-Grounded Development
As AI coding agents let engineers generate diffs faster than they (or reviewing agents) can build genuine understanding of them, Grafana's newly-GA gcx CLI and MCP server let those same agents query live observability data (metrics, logs, traces, SLOs) during development, so that implementation and testing decisions are grounded in and checked against actual system behavior rather than training-data assumptions or a code review that has become unreliable.
practical ยท expository โ A news report on a vendor product-GA announcement (Grafana's gcx CLI and MCP server), but it is organized around and ultimately endorses a practical claim: agentic coding pipelines should add observability data as a verification layer rather than relying on code review alone. The InfoQ framing (problem, architecture, worked example, internal case, conclusion) does the endorsing; Grafana Labs and a Grafana employee (Reddit quote) are the primary sources.
Structure
| Part | Role |
|---|---|
| Problem framing: agents generate diffs fast, but the human's mental-model-building step disappears, and review agents / 'LGTM' approvals create false confidence. | context / motivation |
| Architecture: Grafana MCP server (fixed, opinionated tools, self-hosted or hosted) vs. gcx CLI (flexible, unopinionated, build-your-own-workflow), plus installable skill bundles and Claude Code plugins. | evidence โ what was actually shipped |
| Worked example: adding a payment provider by checking current RED metrics (p95 latency) instead of guessing, to set realistic test parameters. | evidence / narrative โ grounding beats assumption |
| Local iteration tooling: OpenTelemetry Collector / otel-lgtm stack, gcx resources pull for production dashboards, k6-based load-test generation from production telemetry. | evidence โ how grounding is operationalized locally |
| Internal case: the Tempo squad's custom agentic harness profiling a multi-terabyte dev environment, finding optimization candidates, and re-running a baseline query before a human decides to merge. | narrative โ proof the pattern scales to real internal engineering work, with a human decision point retained |
| Agentic Testing feature (experimental): natural-language UI-flow checks, because backend telemetry misses front-end regressions. | evidence โ acknowledges a boundary of the telemetry-grounding approach and patches it |
| Conclusion: PRs now carry dashboard links; the review question shifts from 'did the agent understand the ticket?' to 'does the running system match expectations?' | conclusion |
Key terms
- gcx
A CLI that agents use to build custom, less-opinionated workflows against Grafana Cloud or self-hosted OSS/Enterprise stacks โ the flexible half of the tool pair. - Grafana MCP server
An MCP server exposing a fixed, opinionated set of tools for common Grafana tasks, available self-hosted or as a hosted endpoint for Grafana Cloud. - RED metrics
Rate, Errors, Duration โ the standard metrics set the agent queries (e.g., p95 latency) to ground a specific implementation decision instead of guessing. - Agentic Testing Agentic Testing
An experimental Grafana feature that uses natural-language instructions to check UI flows in a live web application, addressing the front-end blind spot of backend telemetry.
Propositions
- explicitGrafana's gcx CLI and MCP server, now generally available, let AI coding agents query live observability data (metrics, logs, traces, SLOs, Synthetic Monitoring) from Grafana Cloud or a self-hosted stack during development.conf: high
- implicitWhen an agent writes the diff instead of the engineer, the incremental mental-model-building that typing a change used to produce disappears, so engineers can merge agent-generated PRs without fully understanding them โ even as review agents and 'LGTM' approvals manufacture a false sense of confidence.conf: highsupportsAI coding creates two kinds of debt. You're only measuring one ยท p1 โ Restates the same mechanism โ loss of understanding of what a system/change is doing when an agent produces it โ from the angle of PR review rather than cognitive-debt terminology, and proposes observability grounding as a partial counter-signal.
- explicitThe Grafana MCP server and gcx deliberately occupy different points on an opinionation spectrum: the MCP server offers a fixed set of tools for common tasks, while gcx is a broader, less-opinionated CLI for building custom agent workflows.conf: high
- implicitGrounding an agent's implementation and test-parameter decisions in currently-observed production behavior (e.g., real p95 latency) is more reliable than having the agent infer those parameters from its training data.conf: medium
- explicitAgent-driven load-test and traffic-generation work that used to take about a day of manual effort can be automated by having agents build k6 scripts informed by observed production traffic.conf: high
- explicitThe shape of a pull request is changing under agentic coding: instead of just a diff and a description, a PR now carries links to dashboards showing the local build under realistic load โ and this shifts the reviewer's central question from 'did the agent understand the ticket?' to 'does the running system match our expectations?'conf: highextendsFrom Async Code Reviews to Co-Creation Patterns ยท p3 โ Extends 'LGTM syndrome' into the agentic-coding context specifically, and proposes dashboard links as a concrete (if unvalidated) remedy for reviewer disengagement rather than only naming the failure mode.
- explicitBackend telemetry alone cannot catch front-end/UI regressions, which is why Grafana built a separate, still-experimental Agentic Testing feature that uses natural-language instructions to verify UI flows in a live application.conf: high
Arguments
Agentic coding pipelines should pull live observability data into the development loop as an additional, evidence-based verification layer on agent output, rather than relying on code review alone. strength: medium
Explicit premises:
- Agents now generate most of the diff in plan/implement/review workflows.
- Engineers can merge a PR without fully understanding it.
- Review agents and 'LGTM' approvals create a false sense of confidence.
Implicit premises:
- Observed production/system behavior (metrics, traces, logs) is a more objective ground-truth signal than a code review performed on AI-generated code by a possibly-also-AI reviewer.
- Verifying that a system behaves as expected is an adequate substitute for โ or at least a valuable supplement to โ the human fully re-deriving the mental model an engineer would once have built by hand.
- Teams adopting this pattern already have (or can easily obtain) OpenTelemetry-instrumented services, SLOs, and a Grafana-compatible observability stack to query.
Inferences:
- If review agents suffer the same understanding gap as human reviewers under LGTM pressure, telemetry-grounded verification could become necessary infrastructure for agentic coding generally, not just a Grafana-specific convenience.
- Organizations without existing observability maturity (no OpenTelemetry instrumentation, no SLOs) cannot adopt this verification pattern without first doing that infrastructure work โ a bootstrapping cost the article never surfaces.
Narratives
- Adding a new payment provider: instead of guessing expected load, the agent checks current RED metrics, finds the existing provider's p95 latency is two seconds, and uses that figure to set a realistic mocked latency for unit/integration tests and estimate request rates for the new handler.
โ Shows, rather than argues, that grounding an implementation decision in observed behavior beats guessing from training-data assumptions โ the concrete instance of the article's central claim. - Grafana's internal Tempo squad runs a custom agentic harness that profiles a development environment with several terabytes of data, identifies optimization candidates, implements changes, and re-runs the same baseline query to measure the difference โ with a person then deciding whether to merge.
โ Demonstrates the telemetry-grounded pattern operating at real internal engineering scale (not just a toy example) while explicitly retaining a human decision point at merge time, implicitly arguing the pattern is compatible with human-in-the-loop control.
Questions addressed
- โ
How can teams verify AI-agent-generated code against actual system behavior instead of relying only on code review, once code review itself is undermined by LGTM-style approvals of agent output?
Expose live observability data (metrics, logs, traces, SLOs) to the agent itself via a CLI (gcx) and an MCP server, so the agent (and the reviewer, via dashboard links in the PR) can check implementation and test decisions against observed behavior. - โ
Does telemetry-based grounding cover all regression classes, including front-end/UI behavior?
No โ backend telemetry misses front-end regressions, so Grafana ships a separate, still-experimental Agentic Testing feature using natural-language UI-flow checks. - โญ Once agents can not only read but also write and push dashboard definitions back into Grafana or source control, what governs that write path so an agent doesn't silently alter the very observability config that future incident response and future agent verification will depend on?
Gaps
- incompleteThe article states agents 'can push updated dashboard definitions back into Grafana or source control' but never discusses any review, approval gate, or guardrail on that write path. An agent with both read and write access to observability configuration could alter the very dashboards and metrics that future incident response and future agent-verification depend on โ a governance question left completely open even though the rest of the piece is precisely about trusting agent output less, not more.
Read next: Guardrail and approval-gate literature for agents with write access to shared infrastructure/config (not just application code); OPA-style policy layers for agent actions. - incompleteThe only evidence offered that telemetry-grounded verification actually improves outcomes is a single vendor-sourced internal anecdote (the Tempo squad) and a hypothetical worked example (the payment provider). No data compares defect rates, review time, or actual reviewer engagement between dashboard-linked PRs and plain diff-plus-description PRs. Given that the article's own diagnosis is that reviewers already rubber-stamp ('LGTM syndrome'), it is not shown that a dashboard link gets scrutinized any more carefully than a diff did โ the same failure mode could simply migrate one layer up.
Read next: Independent, non-vendor telemetry on whether richer PR context (dashboards, traces) measurably changes reviewer behavior or defect escape rates; the corpus's existing LGTM-syndrome and PR-review material. - incompleteThe entire pattern presupposes an organization already has OpenTelemetry instrumentation, defined SLOs, and a Grafana-compatible observability stack to query โ this is unglamorous infrastructure work that many teams have not done. The article treats 'point the agent at your telemetry' as a drop-in capability rather than naming the maturity precondition, so teams without that substrate get no guidance on how to get from zero to telemetry-grounded agent development.
Read next: Observability-maturity and adoption-sequencing literature; the corpus's own material on trace validation as future/hard infrastructure work.
Closes gaps elsewhere
- Podcast: Formal Methods for Every Engineer in an AI-Powered Future ยท g3 โ That gap named production trace validation and orchestrating real code against production behavior as future, largely-infeasible infrastructure work. Grafana's now-GA gcx CLI and MCP server are concrete shipping infrastructure for exactly this: agents querying live traces/metrics/logs, tracing dashboard queries back to the code that generates them, and grounding test/implementation decisions in observed behavior โ though this closes the 'infrastructure exists' half of the gap, not the harder 'validate against a formal spec' half, which remains open.
Related documents
- From Async Code Reviews to Co-Creation Patterns
- Agentic AI and Code Reviews
- AWS Expands DevOps Agent with AI-Powered Release Management to Validate Code Before Production
- Automated Bug Fixing at Facebook Scale
- DoorDash Used Copilot to Convert Its XCTest-Based iOS Test Suite to Swift Testing
- Technology Radar, Volume 34
- Have your agent record video demos of its work with shot-scraper video
- Agentic Code Review
- [FULL WORKSHOP] AI Coding For Real Engineers - Matt Pocock, AI Hero
- AI coding creates two kinds of debt. You're only measuring one