Agentic Alerting with Assistant Watchers (The Context Window #08)
In episode 8 of The Context Window, Grafana’s livestream series on AI in observability, we look at Assistant Watchers, the agentic alerting feature in Grafana Cloud. Alert rules are great for the failures you already know about, but some problems are hard to write a rule for. Watchers are always-on agents that check a scoped part of your telemetry on a schedule and use an LLM to judge what they find, so they can catch fuzzy, cross-signal problems that a threshold misses.
My co-host Tiffany was on leave, so I was joined by William (Will) Dumont, Staff Software Engineer at Grafana Labs, who works on Watchers, and Rashi Dashore, a Grafana Champion, who stepped in as co-host and asked Will a lot of good questions. We cover what Watchers are, how they differ from alert rules, how they work under the hood, how to calibrate them, and how a watcher can raise alerts and start Assistant Investigations, with demos in Grafana Cloud.
Hosts and guests
- Nicole van der Hoeven, Developer Advocate, Grafana Labs
- William Dumont, Staff Software Engineer, Grafana Labs
- Rashi Dashore, Grafana Champion
What Assistant Watchers are
Will’s two-word description is “agentic alerting”. A watcher isn’t exactly a full agent that runs all the time: it’s a light LLM call that combines different signals and context, then decides whether there’s a problem. That means it can catch things you didn’t predict, including patterns that cross no single threshold but still look wrong together.
Will told us the idea came from his own time on call. Investigations in Grafana Assistant still depended on an alert to trigger them, and he had been woken up at night by noisy alerts, so he built a proof of concept rather than wait for the next hackathon. Watchers started development in June, went into public preview at the end of July, and became generally available in October.
Where they shine
For Will, the most powerful feature is that a watcher can sift through error log patterns. Coding agents now add warn and error logs everywhere, which is useful but noisy to alert on. A watcher can look through that noise and pick out the new patterns that seem important enough to alert on.
I shared my own story: I have a VM that was already instrumented with the usual alerts for things like error rates, and a watcher still flagged something I would have missed. It was in the logs, and it turned out to be an error page being served with an HTTP 200, so my normal alerts never fired. An Investigation had already started by the time I looked at it.
Setting one up
You create a watcher by describing what you want in natural language. In the demo, Will made one for the inventory service in a demo e-commerce environment from a short prompt. You can give it context that isn’t in Grafana, and a research step then works out the right signals to watch. A few things we covered:
- Scope is up to you. A watcher can watch a service, a feature, or something broader.
- Data sources. Will listed Prometheus, Loki, Tempo, Pyroscope, BigQuery, CloudWatch, synthetic monitoring and the Infinity data source (which covers HTTP APIs), with more being added. Each one needs engineering work so that queries stay cheap, so the list is growing carefully.
- Where alerts go. Slack, Microsoft Teams, webhooks, or Grafana Alerting, so a watcher plugs into your existing alert routing. Will suggested starting with Slack or Teams to see whether it’s too noisy before wiring it into paging.
- Not only for infrastructure. I use watchers on my own health-ring data and I’m launching a game on Grafana Pages that has one too. Will said he’d like to try one on his tomatoes next summer.
Calibration
Calibration is the step that makes Watchers affordable and reliable. Running a full agent every five minutes would be slow, expensive and non-deterministic. So when you create a watcher, an agent first does the research: it looks at dashboards, knowledge graph memories and your telemetry, and builds and tests a set of queries. After that, each scheduled run just executes those queries, packs the results into a report, and asks the LLM to make a decision.
Will’s advice: the better the calibration, the better the watcher, so spend time on it if you want a high-quality one. You can also correct it later by suggesting a change, such as telling it that traffic will be low on a US holiday, or that it shouldn’t page too early in the morning. Watchers also keep a short-term memory between runs, so one that sees something starting to go wrong can note it and check again on the next tick. An auto-recalibration feature runs weekly to keep them fresh as your service changes.
On cost, Will said that calibration is on average under a dollar, and that the watchers used internally mostly cost under $10 a month, with a median of around $5. He pointed out that Grafana Cloud includes a pool of tokens for free usage. Those were his figures from the stream, so check the current pricing before relying on them.
Alerts and Investigations
Watchers are triggers: they find the anomaly and tell you, but they don’t troubleshoot. You can, however, let a watcher decide when to start an Assistant Investigation, the root cause analysis agent, so that by the time you’re paged, some of the digging has already been done.
Tips from the stream
- Let the calibration agent find the signals. If you create watchers with a coding agent through
gcx, as I do, don’t over-specify which signals to use. - If a watcher is noisy at first, tell it. It learns from the feedback.
- Watchers respect RBAC, and you can scope one to a team, so a watcher can only see data that its viewers can already see.
- Starting points: Will mentioned templates generated from the telemetry you’re already sending, so you can create a watcher in one click.
There’s also a Send feedback button on each watcher, and Will said he reads the feedback personally.
Resources
- Assistant Watchers docs
- Get started learning path
- Assistant Investigations docs
- Grafana Cloud forever-free tier
- Discussion on the Grafana community forum
Assistant Watchers are generally available in Grafana Cloud, under AI > Watchers.
Related reading
- My notes on Grafana Assistant