Blog
on-call AI agentClaude Code on-callAI incident response

How Does an AI On-Call Agent Work? Lessons From SigNoz

How SigNoz built an on-call AI agent with Claude Code and runbooks: the alert flow, the results, and lessons on runbooks and monitoring the agent.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering and IT

A young man in a zip fleece and backwards cap runs across a seamless backdrop, his body streaked by motion blur, gripping a crisp checklist sheet with ticked boxes.

How does an AI on-call agent investigate production alerts?

An on-call AI agent watches the channel where alerts land, decides whether each alert needs attention, follows a written runbook for that alert type, pulls data from every relevant system, and replies in the same thread with a likely root cause and a suggested fix. SigNoz, an open source observability company, built one on Claude Code. They report root-cause analysis in about 90 seconds, more than 570 engineer hours saved, and roughly $200 in cost for about 4,000 alerts.

TL;DR

  • SigNoz's agent follows a five-step loop: an alert lands in Slack, Claude Code classifies it, runs the matching runbook, gathers data from all sources, and replies in the thread with a root cause.
  • The company reports root cause in about 90 seconds, more than 570 hours saved across the team, and about $200 for roughly 4,000 alerts (around 1,000 of them full investigations).
  • The agent's real advantage is that it checks every data source without getting bored, which tired humans skip at 3 a.m.
  • Early on, SigNoz kept logic in code. They moved it into runbooks kept separate from the code, and said that works much better.
  • Once an agent is part of production, it needs monitoring like any production service, including whether it has enough AI capacity left. SigNoz's agent once ran out of its daily Claude Code tokens and stopped working.
  • The agent recommends fixes but does not apply them yet. Automatic pull requests that humans merge are an early experiment.

Why is investigating alerts so hard at SigNoz's scale?

SigNoz runs a cloud product that takes in petabytes of customer data a month across more than 2,000 namespaces. The company says it has over 1,000 customers, including more than 40 Y Combinator companies, and more than 32,000 GitHub stars.

That volume sits on a chain of components. Customer data arrives through different ingestors, passes through a Redpanda collector, and lands in a ClickHouse data store. When something breaks, the cause could be in any link of that chain.

Here is the example they gave. An alert fires for consumer lag in one region. The on-call engineer wants to fix it fast, because this is critical infrastructure. The fix is often a patch for the symptom. Nobody has time to open every dashboard and check every data point, so the root cause stays untouched. In their example, the same issue came back eight hours later, and only then did someone dig into the real cause.

This is the part that applies well beyond observability companies. Alerts are rarely hard because one step is difficult. They are hard because a complete investigation means checking many places, and a person under pressure takes shortcuts.

How does the SigNoz agent work, step by step?

The flow is simple, which is part of why it works:

  1. An alert lands in a Slack channel. The agent watches that channel.
  2. Claude Code classifies the alert. Is this a bad alert, or does it need attention? Filtering out noise comes first.
  3. It matches the alert to a runbook. SigNoz wrote a runbook for each type of alert, and the agent works through the relevant one.
  4. It gathers data from all the different sources. SigNoz calls this the critical step. Engineers tend to skip some sources because checking everything is tedious. The agent does not tire or get bored.
  5. It replies in the same Slack thread. The reply contains the root-cause analysis, what to change, and what a human should look at.

The agent stops at the recommendation. SigNoz says it has not yet made the agent fix issues on its own, though that is something they plan to do. Because their cloud is connected to GitHub, they have also started trying out whether the agent can open pull requests automatically, with a human reviewing and merging them.

What results did SigNoz report?

These numbers come from SigNoz's own account, not an independent study:

MeasureReported result
Time to root causeAbout 90 seconds
Engineering time savedMore than 570 hours across the team
CostAbout $200 for roughly 4,000 alerts
InvestigationsAbout 1,000 of those alerts

Compare that with the earlier example: a quick patch, then a recurrence eight hours later, then a proper investigation. The gain is not only speed. It is that the first response is a root-cause analysis instead of a guess.

The cost figure is worth pausing on. $200 spread over thousands of alerts is small next to engineer time. SigNoz's own description of the system is that it is not especially complicated or engineering heavy. It is implemented well and it works.

Why did SigNoz move its logic out of code and into runbooks?

SigNoz's first version put the logic in Go handlers, meaning code that decided what to do for each alert. They found that was the wrong place for it. They separated the logic into runbooks, and say that has worked much better.

A runbook is a written procedure for handling a known situation: what to check, in what order, and what the results mean. Most teams already have them as wiki pages or docs. Writing them in plain language and handing them to an AI model has a practical benefit. The people who know the systems best can edit the procedure directly, without changing code or waiting for a deploy.

If you want to try this, a useful runbook for an agent looks something like this:

Runbook: [Alert name, e.g. Consumer lag high]

When this applies:
- Alert name or pattern that triggers this runbook
- Signs that it is a false alarm (and what to reply if so)

What to check, in order:
1. [Dashboard or query] and what a healthy result looks like
2. [Logs to search] and which errors matter
3. [Recent deploys or config changes] to compare against
4. [Related systems upstream and downstream]

How to interpret results:
- If X and Y, the likely cause is Z
- If nothing matches, say so and list what was checked

Reply format:
- Likely root cause
- Evidence (what you saw, where)
- Suggested change
- What a human should verify

The "if nothing matches, say so" line matters. You want the agent to report what it checked when it cannot find a cause, not invent one.

Why should you monitor the agent like production?

Once the agent is part of how you handle incidents, it is production infrastructure. SigNoz learned two things about this.

First, you need to know whether it is running. An agent that silently stops leaves your team believing alerts are being triaged when they are not.

Second, you need to know whether it has AI capacity. SigNoz found that the agent had used up all of its Claude Code tokens for the day, and that stopped it from working. Tokens are the units AI providers use to meter and bill usage. If your agent has a daily or monthly limit, track it like you would disk space.

SigNoz is an observability company, so they monitor the agent with their own product. The alerts from their main cloud are watched by a separate SigNoz cluster, and that cluster is watched by the agent, which is in turn monitored by another SigNoz setup. Their joke is "turtles all the way down", and the question behind it is real: who monitors the monitor? You do not need a stack of turtles, but you do need something independent of the agent that tells you when it stops.

What does this mean for you?

If you are on an on-call rotation: The pattern is within reach even for a small team. Start with your noisiest, most repetitive alert. Write down how you investigate it, step by step, including every place you look. That document is both your runbook and your first agent instruction.

If you manage an engineering team: The reported value here is not replacing people. It is the first response being thorough every time, at any hour. Keep humans responsible for the fix. SigNoz still does, and is cautious about automation going further.

If you are not in engineering: The same shape applies to any repeating "something flagged, someone must investigate" work. Think of fraud flags in finance, failed payments, or support escalations. The loop is the same: a trigger, a sorting step, a written procedure, data from several systems, and a clear written answer.

What to do first:

  • Pick one alert type and write its runbook.
  • Run the agent in a mode where it only replies in a thread, with no ability to change anything.
  • Compare its answers with what your engineers found, and fix the runbook where it is wrong.
  • Set up monitoring for the agent itself, including its usage limits, before you rely on it.

Could you build a runbook library and alert log yourself?

The hard part of SigNoz's setup is the runbooks and the follow-through, and teams often keep both in scattered docs and spreadsheets. With Remy, you could describe a small internal app in plain English: a runbook library where each alert type has an owner and a last-reviewed date, plus a log where the agent's root-cause replies are recorded and an engineer marks each one right or wrong. Remy builds and deploys the full-stack app, and a reviewed-versus-wrong tally would show which runbooks need fixing. It is a way to own that tracker rather than add another subscription.

Frequently Asked Questions

4 questions

Does the SigNoz agent fix problems automatically?

No. It classifies the alert, investigates, and replies in Slack with a root cause and what to change. SigNoz says it plans to move toward automatic fixes and has started experimenting with the agent creating pull requests that humans review and merge.

What is a runbook, and why does it matter for an AI agent?

A runbook is a written procedure for handling a specific kind of problem. SigNoz first put its logic in code, then moved it into runbooks kept separate from the code and found that worked much better. Runbooks let the people who know the systems update the agent's behavior directly.

How much does it cost to run an on-call AI agent?

SigNoz reports about $200 for roughly 4,000 alerts, around 1,000 of which were full investigations. Your cost will depend on your alert volume, how much data the agent reads per investigation, and the AI model you use.

What can go wrong with an on-call AI agent?

It can stop working without anyone noticing. SigNoz's agent once used up its entire daily Claude Code token allowance and stopped. They now treat it as production infrastructure and monitor both whether it is running and how much AI capacity it has left.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.