Back to category
AI

What Is an AI SRE Agent?

An AI SRE agent uses an LLM and your telemetry to investigate incidents. Learn how it works, autonomy levels, what it needs, and how to evaluate one.

What Is an AI SRE Agent?

An AI SRE agent is software that uses a large language model (LLM), connected to your observability data and operational tools, to investigate production incidents the way a site reliability engineer would. It reads an alert, queries logs, metrics, traces, and recent changes, forms hypotheses about the root cause, and proposes (or, with permission, applies) a fix. Its job is to absorb the repetitive first stage of incident response so engineers spend their time on judgment, not on gathering evidence.

TL;DR

  • An AI SRE agent runs a loop: receive alert, query telemetry, form hypotheses, test them, report ranked findings, then propose or execute an action.
  • It differs from AIOps (statistical correlation) and runbook automation (fixed scripts) because it decides what to query next based on what it just found.
  • Autonomy is a spectrum. Most production teams run agents that investigate on their own but need human approval to change anything.
  • Agent quality depends on your telemetry: short retention, dropped high cardinality attributes, and missing deploy events cap what any agent can conclude.
  • Measure an agent on replayed incidents: root cause accuracy, time to first useful hypothesis, and how often engineers accept its findings.

Why AI SRE Agents Exist

The Google SRE book defines toil as manual, repetitive, automatable operational work, and recommends keeping it below 50% of each SRE's time. Alert triage and first pass investigation fit that definition exactly. In a typical incident, an engineer is paged, opens four dashboards, checks what deployed recently, greps logs, and pulls a few traces before forming a first theory.

That evidence gathering is structured enough for software to do, but too varied for a fixed script. A checkout error spike might come from a bad deploy, an exhausted database connection pool, or a failing payment provider. An LLM with tool access can explore those branches in minutes, in parallel, at 3 a.m.

How an AI SRE Agent Works

Every AI SRE agent, commercial or homegrown, runs some version of this loop:

  1. Trigger. An alert fires from a monitor, an anomaly detector, or a user report. The agent receives the service name, severity, and time window.
  2. Gather context. The agent queries error rates, latency percentiles, log patterns, trace samples, Kubernetes events, and deploy or config change history around the alert window.
  3. Form hypotheses. The LLM proposes candidate causes, for example "payments v3.2.1 deploy", "database connection pool saturation", or "upstream provider timeouts".
  4. Test each hypothesis. It runs targeted follow up queries to confirm or rule out each candidate. This step is what makes it an agent rather than a chatbot: the next query depends on the last result.
  5. Report. It posts ranked hypotheses with the supporting evidence to the incident channel or ticket.
  6. Act. Depending on its permissions, it suggests a remediation, opens a pull request, or runs an approved runbook action such as a rollback.

Here is what a useful investigation summary looks like. Notice that every claim points to evidence an engineer can verify in seconds:

{
  "alert": "checkout-api error rate above 5% for 5m",
  "window": "2026-09-14T03:02Z to 03:17Z",
  "queries_run": 11,
  "hypotheses": [
    {
      "rank": 1,
      "cause": "payments-service v3.2.1 deploy introduced a 2s client timeout",
      "confidence": "high",
      "evidence": [
        "deploy event at 03:00Z, errors start 03:02Z",
        "412 spans with error.type=TimeoutError on POST /charge",
        "no errors on pods still running v3.2.0"
      ]
    },
    {
      "rank": 2,
      "cause": "database connection pool saturation",
      "confidence": "low",
      "evidence": ["pool usage peaked at 61%, below the 90% alert threshold"]
    }
  ],
  "proposed_action": "roll back payments-service to v3.2.0 (awaiting approval)"
}

The second hypothesis matters as much as the first. A good agent shows what it ruled out, so the on call engineer does not repeat that work.

Components of an AI SRE Agent

ComponentWhat it doesWhy it matters
LLM (reasoning model)Plans the investigation, interprets results, writes the summaryDetermines reasoning quality and cost per investigation
Tool layerExposes query and action functions through APIs or a Model Context Protocol (MCP) serverThe agent can only investigate what its tools can reach
Telemetry storeLogs, metrics, traces, profiles, and eventsRetention, cardinality, and query latency bound every conclusion
Change dataDeploys, feature flags, config and infrastructure changesMost incidents follow a change; without this data the agent guesses
KnowledgeRunbooks, service ownership, past incidents and postmortemsLets the agent recognize known failure patterns faster
Action layerRollbacks, restarts, scaling, pull requestsWhere risk lives; needs the tightest permissions
GuardrailsApproval gates, scoped credentials, audit logs, confidence thresholdsKeeps a wrong hypothesis from becoming a longer outage

Levels of AI SRE Agent Autonomy

"Autonomous" is used loosely in vendor marketing. A clearer way to compare agents, and to plan a rollout, is by what the agent is allowed to do without a human:

LevelNameWhat the agent doesHuman roleGood fit
0AssistantAnswers questions when asked ("show errors for checkout in the last hour")Drives the whole investigationTeams starting to trust AI output
1InvestigatorStarts investigating automatically when an alert fires and posts findingsReviews findings, decides the fixMost teams today
2RecommenderAdds a specific remediation or a pull request with a code fixApproves or rejects the changeTeams with good CI and code review
3Supervised operatorExecutes preapproved, low blast radius actions (restart a pod, roll back a deploy) and reports afterwardAudits actions, can revertWell understood failure modes with tested runbooks
4Autonomous operatorChooses and executes remediations without approvalSets policy, reviews after the factRare in production today

Move up one level at a time, per service and per action type. An agent can reasonably run at Level 3 for "restart a crash looping stateless pod" while staying at Level 1 for anything touching a database.

Current evidence supports caution at the higher levels. In an August 2025 experiment by ClickHouse engineers, four frontier LLMs were asked to find injected faults in an OpenTelemetry demo application from telemetry alone, and none identified the root causes reliably without human guidance. At the other end, Wix reports agents enriching more than 30,000 alerts a month with around 90% root cause accuracy, while humans still make every remediation decision. The pattern holds across sources: agents are strong investigators and unproven operators.

AI SRE Agent vs AIOps vs Runbook Automation

Runbook automationAIOpsAI SRE agent
Core techniquePredefined scripts triggered by conditionsStatistical baselines, clustering, event correlationLLM running a tool use loop over telemetry
Handles unanticipated failuresNo, only what someone scriptedDetects them, does not explain themCan reason about them, with mixed accuracy
OutputAn executed actionGrouped, deduplicated incidentsRanked hypotheses with evidence, optional action
Follow up queriesNoneNoneYes, the defining behavior
Main riskScript runs in the wrong contextNoise or missed correlationsConfident but wrong conclusions

These layers stack rather than compete. AIOps style correlation reduces 200 alerts to one incident, the agent investigates that incident, and a runbook executes the fix a human approved.

What AI SRE Agents Do Well, and Where They Fail

Strong today

  • Pulling and correlating evidence across logs, metrics, traces, and change events faster than a paged human.
  • Matching symptoms to recent deploys, config changes, or known failure patterns.
  • Writing a clear incident timeline and a first draft of the postmortem.

Weak today

  • Anchoring. Models often lock onto the first plausible hypothesis and stop testing alternatives. Require agents to show ruled out hypotheses.
  • Multi cause incidents. A deploy plus a traffic spike plus a noisy neighbor is hard to untangle from telemetry alone.
  • Missing context. An agent cannot know that a latency increase is expected during a planned migration unless that fact exists in a system it can query.
  • Blast radius judgment. Deciding whether a rollback is safer than a hotfix involves business context the agent rarely has.

What Your Stack Needs Before Adopting an AI SRE Agent

An agent is only as good as the data and permissions behind it. Check these before a pilot:

  1. Correlated telemetry. Logs carry trace IDs, and traces carry service, version, and deployment attributes. OpenTelemetry semantic conventions give you consistent attribute names to join on.
  2. Change events in the same store. Deploys, feature flag flips, and infrastructure changes are recorded with timestamps and service names.
  3. Enough retention and cardinality. If you drop user IDs, request IDs, or pod names to save cost, the agent cannot tie an anomaly to a specific release, region, or customer. Seven days of retention also rules out comparisons with last month's incidents.
  4. Fast queries. Agents typically run many small queries per investigation. If each takes 20 seconds, investigations become slower than a human with a dashboard.
  5. Service ownership and runbooks. Machine readable ownership (who owns payments-service) and runbooks the agent can read.
  6. Scoped credentials. Read only access for investigation. Write actions go through a separate identity with an approval gate and an audit log.

How to Evaluate an AI SRE Agent

Vendor demos use incidents chosen to succeed. Run your own evaluation on 20 to 30 past incidents with known root causes, replayed against real telemetry:

MetricHow to measureWhat good looks like
Root cause accuracyTop ranked hypothesis matches the postmortem root causeTrack top 1 and top 3 separately
Time to first useful hypothesisAlert time to first finding an engineer would act onMinutes, compared against your current median
Acceptance rateShare of findings engineers mark as correct or useful in live incidentsRising over the first 60 days
Confident wrong rateFindings marked high confidence that turned out wrongAs close to zero as possible; this erodes trust fastest
Evidence qualityEvery claim links to a query, log line, span, or event100%; unsupported claims are a red flag
Cost per investigationLLM tokens plus query costs per alertPredictable, and cheaper than the engineer time saved

Include at least three incidents where the obvious cause was not the real one. That is where anchoring shows up.

How to Monitor the AI SRE Agent Itself

An agent is a production system too, so instrument it. The OpenTelemetry GenAI agent span conventions define a parent invoke_agent span with child chat spans for each model call and execute_tool spans for each tool call. An investigation trace looks like this:

invoke_agent sre-investigator                 gen_ai.conversation.id=inc-4821
├── chat claude-sonnet                        gen_ai.usage.input_tokens=3120
├── execute_tool query_error_rate             gen_ai.tool.name=query_error_rate
├── chat claude-sonnet                        gen_ai.usage.input_tokens=4410
├── execute_tool list_recent_deploys          gen_ai.tool.name=list_recent_deploys
├── execute_tool search_traces                gen_ai.tool.name=search_traces
└── chat claude-sonnet                        gen_ai.response.finish_reasons=["stop"]

With this in place you can alert on investigations that loop without finishing, tool calls that fail or time out, and token cost per investigation, using the same observability stack the agent queries. The OpenTelemetry project's GenAI observability guide walks through the attributes in more detail.

AI SRE Agent Tools

  • Middleware OpsAI: investigates across APM, RUM, logs, and Kubernetes, and can open pull requests with code fixes.
  • Datadog Bits AI SRE: investigation agent for teams whose telemetry lives in Datadog.
  • PagerDuty SRE Agent: built into incident response workflows and runbook automation.
  • Azure SRE Agent: focused on applications and resources hosted on Azure.
  • New Relic SRE Agent: assistive investigation inside New Relic.
  • Resolve AI and incident.io: standalone agents that connect to multiple observability and incident tools.
  • Open source options: projects such as HolmesGPT and K8sGPT let you run investigation agents against your own Prometheus, Kubernetes, and log data.

For a feature by feature comparison, see our guide to AI SRE tools.

How Middleware OpsAI Works as an AI SRE Agent

The hardest part of running an AI SRE agent is giving it complete, correlated context. OpsAI runs inside Middleware's OpenTelemetry native platform, so it investigates APM traces, RUM sessions, logs, and Kubernetes events that already share a timeline, and it can also pick up alerts from Datadog and Grafana.

When it identifies a code level cause, it reads the relevant source through a GitHub MCP connection and opens a pull request for review. Teams choose between an RCA mode, where OpsAI proposes fixes, and an auto fix mode for supported Kubernetes issues. That maps to Levels 2 and 3 in the autonomy model above. See how OpsAI investigates an incident.

Frequently Asked Questions

Will AI SRE agents replace site reliability engineers?

No. Current agents replace investigation toil, the repetitive querying and correlating in the first part of an incident. SREs still own reliability decisions: SLOs and error budgets, capacity planning, architecture reviews, deciding which remediation is safe, and running postmortems. In practice teams page fewer people for evidence gathering, while the same people stay accountable for outcomes and for tuning what the agent is allowed to do.

Is an AI SRE agent the same as AIOps?

Not quite. AIOps uses statistical models to detect anomalies and group related alerts into incidents. An AI SRE agent uses an LLM to investigate an incident by running follow up queries and testing hypotheses. Many teams use both: AIOps style correlation reduces alert noise, then the agent explains what happened and suggests a fix.

Can an AI SRE agent fix incidents automatically?

Some can, but most production teams require human approval for changes. A common approach is letting the agent open a pull request or propose a rollback that an engineer approves, and allowing fully automatic execution only for low risk, well tested actions such as restarting a crash looping stateless pod. Expand automatic actions one action type at a time.

What data does an AI SRE agent need?

It needs logs, metrics, and traces that share identifiers such as trace IDs, service names, and versions, plus deploy and configuration change history. Longer retention lets it compare against past incidents, and keeping high cardinality attributes like pod names and request IDs lets it pinpoint which release, region, or customer is affected. Runbooks and service ownership data improve accuracy further.

How do you give an AI agent access to observability data safely?

Expose telemetry through an API or MCP server using read only credentials scoped to the data the agent needs. Keep write actions such as rollbacks or scaling behind a separate identity that requires approval, log every tool call the agent makes, and review those logs. Never reuse a human administrator's credentials for an agent.