AIOps Implementation Guide: From Anomaly Detection to Root Cause Analysis
This article explains why modern AIOps still struggles with root cause analysis despite mature anomaly detection, and outlines a practical path toward Agentic SRE. It covers the four capabilities an autonomous investigation agent needs, the data prerequisites for building a correlatable evidence chain, a four-phase rollout plan, and the engineering metrics and risk controls required to validate results. Readers will learn how to move from fast alerting to trustworthy, evidence-backed root cause identification.
1. The Problem: Fast Alerts, Slow Diagnosis
At 2 a.m., the payment success rate curve drops off a cliff, and the on-call phone rings immediately. The on-duty engineer opens the monitoring dashboard, digs through logs, traces the call chain, checks change records, and maps the service dependency topology. Forty minutes later, the root cause is confirmed: a canary release introduced a bad configuration that exhausted the connection pool of a downstream service. The next day, the post-incident review report still has to be written.
This workflow remains the mainstream today. Over the past decade, the operations technology stack has gone through several rounds of evolution, from traditional monitoring to observability and then to AIOps. The breadth of data collection, the latency of anomaly detection, and the accuracy of alert noise reduction have all improved by orders of magnitude. But one structural gap persists: finding problems is getting easier, while diagnosing them is still hard.
The common industry pattern is detecting anomalies in minutes or even seconds, yet still needing tens of minutes to hours to complete root cause analysis. The reason is not a shortage of tools. The investigation process is essentially a loop of hypothesis generation and verification across heterogeneous data sources. It depends on the system model and historical experience in the engineer’s head, which fixed rules struggle to cover.
2. Where the Competition Is Moving: Detection Is Mature, Investigation Is Still a Blank Spot
Incident handling can be split into four stages: Collect, Detect, Investigate, and RCA & Mitigate. The technical gains of the past decade have concentrated in the first two stages:
- Metric collection has reached second-level granularity, with significantly improved cardinality scaling.
- Logs and traces support real-time ingestion and full-text search.
- Automated anomaly detection based on statistical models and behavioral baselines has become standard.
- Alert aggregation, suppression, and deduplication have substantially reduced noise.
The third and fourth stages still rely heavily on experts:
- Correlating three heterogeneous data types at once: metrics, logs, and traces.
- Understanding service dependencies and traffic direction to determine whether a service is the source of the failure or a victim.
- Aligning change events with anomaly timestamps to establish causation rather than correlation.
- Producing an actionable mitigation, not just naming a suspicious object.
So the second half of AIOps is not about “who detects faster,” but about “who can deliver root cause more accurately and more credibly.” This is also the real value anchor of generative capabilities entering operations: organizing scattered evidence into a readable reasoning process.
3. The Target State: Four Capabilities of an Agentic SRE
The next-generation AIOps entry point is an “agent on duty” that can conduct investigations autonomously. It needs four capabilities:
- Autonomous planning: Given an alert, decompose the investigation path itself and decide what to look at first and next, rather than executing a fixed script.
- Tool invocation: Query metrics, search logs, pull traces, and read changes and topology through controlled interfaces to form evidence.
- Evidence-based reasoning: Distinguish correlation from causation and identify intermediate mechanisms such as “downstream connection pool exhausted,” rather than stopping at “error rate on a service went up.”
- Trustworthy expression: When outputting conclusions, attach evidence references, confidence, and counter-evidence conditions, and allow a human to review with one click.
Illustrative pseudocode can express this loop:
hypothesis = generate_hypotheses(alert, topology)for h in rank_by_prior(hypothesis):evidence = []for tool in [metrics, logs, traces, changes]:evidence += tool.query(h.signature, window=align(alert.ts))if causal_check(h, evidence).passed:return Report(root_cause=h, evidence=evidence,confidence=score(h, evidence),mitigation=playbook(h.type))update_priors(h, evidence)
The key design point: conclusions must be traceable back to raw evidence; otherwise the agent is just a faster guesser.
4. Prerequisites: Turning Data into a Correlatable Evidence Chain
The ceiling on an agent’s effectiveness is set by data quality. Four foundational actions cannot be skipped:
- Unified time baseline: All data sources use the same clock source and aligned time windows, avoiding the illusion that “the change happened after the anomaly.”
- Unified entity identity: Build a consistent entity model for services, instances, interfaces, and dependencies so metrics, logs, and traces can be aggregated by the same entity.
- Structured change events: Releases, configuration changes, scaling actions, and feature flag toggles need fields for the subject, scope, time, and operator. This is the strongest prior for causal judgment.
- Topology and traffic direction: Call relationships alone are not enough; traffic ratios and critical path information are also needed to determine the direction of failure propagation.
In cloud environments, these capabilities are typically provided by common service categories: monitoring and alerting, log services, trace analysis, container platforms, message queues, and object storage. Baidu AI Cloud follows the same layered approach in practice: first standardize observability data, then layer intelligent analysis on top.
5. A Phased Implementation Roadmap
Phase 1: Assist investigation (low risk)
The agent acts only as an “evidence collator,” organizing cross-source query results into a timeline while humans draw conclusions. The benefit is reduced investigation time, with almost zero risk.
Phase 2: Rank candidate root causes
Introduce change alignment and topology propagation analysis to output the Top-N candidate root causes with confidence. Every conclusion must come with evidence links.
Phase 3: Controlled autonomy
Under read-only permissions, allow the agent to plan multi-round queries on its own; for high-risk operations, generate only suggestions for humans to execute.
Phase 4: Closed loop and prevention
Turn confirmed root causes into knowledge entries that feed back into alert rules, capacity policies, and release gates, forming a “failure - knowledge - prevention” loop.
6. Evaluation and Risk Control
Do not measure effectiveness by “whether the answer reads smoothly.” Build engineering metrics instead:
- Top-1 / Top-3 root cause hit rate: Compared against human-labeled ground truth.
- Reduction ratio in average investigation time: Using historical incidents of the same type as the baseline.
- Evidence traceability rate: The proportion of conclusions without supporting evidence should approach zero.
- False-positive mitigation rate: The proportion of suggested actions rejected by humans.
The risk control checklist includes: least privilege with read-only as the default, query quotas and circuit breaking, masking of sensitive fields, labeling conclusions with confidence and uncertainty, retaining a complete audit trail, and a clear boundary of “suggest, not auto-execute.”
7. Conclusion
Competition in AIOps has shifted from “detecting anomalies” to “locating root cause.” The real moat is not the model itself, but the engineering system formed by three things: a standardized evidence chain, controlled tool invocation, and verifiable reasoning. Advancing in phases, validating with metrics, and turning human experience into reusable knowledge is the realistic path to bring Agentic SRE from concept onto the on-call schedule.
