Personal project by Ulf Fäldt Reifenberg · December 2026 · unofficial, not affiliated with Grafana Labs

Who should run the queries: code or the model?

An alert fires on one service; the fault is somewhere else. An AI assistant can find it two ways. Code runs a fixed set of PromQL checks and the model reads the table in one call, or the model writes its own PromQL and runs it through Grafana's MCP server. This page measures both on 18 simulated incidents with a known cause, next to a rule written in plain code.

Loading…

What was run

Results

18 incidents per arm. Intervals are 95% bootstrap intervals over incidents (10,000 resamples). Input tokens and calls are averages per incident. "Failed queries" are queries that returned an error or no series.

Paired differences

By fault class (both right)

Incident by incident

✓ both right · s service only · c class only · ✗ neither

Trace explorer

Pick an incident and an arm to see what the model was given, the queries it wrote and what came back.

Limits

About. Built by Ulf Fäldt Reifenberg for an application to Grafana Labs, with coding agents doing the implementation. Unofficial; it uses Grafana's and Prometheus's open-source software and says nothing about Grafana's internal systems. The data is synthetic. Grafana Labs publishes its own, much larger benchmark for observability agents, o11y-bench; this page asks one narrower question. Contact: LinkedIn.