Chapter 00 — Introduction to AIOps¶
This chapter establishes the philosophical and architectural foundation of AIOps: why it exists, which problems it solves, where it fails, and how to measure success.
Architecture poster — end-to-end AIOps pipeline

Collection → data contracts → stateful intelligence → safe action → independent verification.
Prerequisites¶
- Basic understanding of distributed systems
- Familiarity with monitoring concepts (metrics, logs, alerts)
- Optional: SRE concepts from Google's SRE Book
Related Documents¶
- 01 — Observability
- 09 — Anomaly Detection
- 14 — Production
- 15 — Big Tech AIOps Case Studies (summary case studies; details in dedicated chapters)
- 16 — E-commerce & Banking Patterns
- 17 — Famous Incidents
Next Reading¶
After this chapter, continue to 01 — Observability.
1. What Is AIOps?¶
KEY IDEA
AIOps is the use of AI/ML to automate cognitive work in IT operations — specifically: detecting problems earlier than humans, filtering noise from hundreds of alerts down to 1–3 real alerts, and automatically remediating predictable failures. Think of it as an "automated on-call assistant" — it does not replace engineers, but handles 80% of repetitive work so engineers can focus on the 20% of decisions that matter.
Why AIOps is a capability, not a product
No product "knows" your system out of the box. Datadog/Dynatrace are platforms with some ML features — but real AIOps requires models trained on your own data, your own topology, your own runbooks. That is why AIOps must be built, not merely bought.
Definition¶
AIOps (Artificial Intelligence for IT Operations) is the application of machine learning, large language models, and statistical algorithms to automate and augment IT operations — specifically:
- Telemetry ingestion and enrichment at scale
- Anomaly detection across metrics, logs, and traces
- Alert correlation to reduce noise
- Root cause analysis to identify the origin of failures
- Automated remediation to resolve incidents without human intervention
- Knowledge accumulation to improve over time
Important distinction: AIOps is not a product you buy. It is a capability you design and develop. Vendors sell components; you architect the system.
What AIOps Is NOT¶
| Common misconception | Reality |
|---|---|
| "AIOps = AI replaces SRE" | AIOps augments SREs. It handles toil. Humans handle judgment calls. |
| "AIOps = just Datadog/Dynatrace" | Those are observability platforms with some ML features. Real AIOps integrates custom models trained on your own data. |
| "AIOps = buy an ML platform" | AIOps requires your telemetry data, runbooks, and topology. No packaged solution knows your system. |
| "AIOps = alert routing rules" | Alert routing is only the baseline minimum. AIOps reduces 80–95% of alerts before they reach humans. |
| "AIOps works immediately after install" | It takes 3–6 months of data collection before anomaly detection becomes reliable. |
Note
Check question: Why can't AIOps be "buy and use" like Datadog? What organization-specific ingredients do you need?
Three Value Layers¶
When explaining AIOps to technical leadership, separate three layers — each with different ROI and risk:
| Layer | What it does | Time to value | Primary risk |
|---|---|---|---|
| Noise reduction | Dedup, group, suppress cascade | 1–3 months | Over-suppression hides real signal |
| Faster understanding | RCA ranking, LLM summary, context pack | 3–9 months | Hallucination / wrong confidence |
| Closed-loop action | Auto-remediation with verification | 9–18 months | Blast radius, metastable feedback |
Important
Do not sell "remediation automation" before the organization trusts layers 1 and 2. Operational trust is an asset; one wrong auto-remediation can burn 12 months of relationship with the product team.
2. The Problem AIOps Solves¶
KEY IDEA
The core problem is alert fatigue. When one service fails in a 50-microservice system, traditional monitoring fires 100–500 alerts at once (one upstream failure cascades downstream). The on-call engineer gets all of them at 3 a.m. and cannot tell critical alerts from noise. AIOps solves this by identifying the root cause and collapsing all derived alerts into a single incident with full context.
Why not just 'turn off some alerts'?
The simplest alternative is reducing alert rules — but that loses the ability to detect real problems. AIOps does not discard alerts; it understands causal relationships between them: "these 200 alerts are all consequences of 1 root cause." Trade-off: you need 3–6 months to build models; there is no instant result.
Alert Fatigue — The Core Problem¶
In a modern microservices architecture with more than 50 services, a single deployment can trigger:
- More than 200 metric alerts (CPU, memory, latency, error rates on every pod)
- More than 1,000 error log events
- Cascading alerts from downstream services affected by a single upstream failure
An on-call engineer receives more than 1,200 of these notifications at once at 3 a.m.
Result: Alert fatigue. Engineers stop trusting alerts. Real incidents get missed. MTTR (Mean Time to Recovery) increases.
Before AIOps — Cascading alert storm:
graph TD
DEP[Deployment at 03:00] --> FAIL[Service A Fails]
FAIL --> C1[Alert: CPU High - Service A]
FAIL --> C2[Alert: Error Rate High - Service A]
FAIL --> C3[Alert: Latency High - Service B]
FAIL --> C4[Alert: Error Rate High - Service B]
FAIL --> C5[Alert: Database Connections High]
FAIL --> C6[Alert: Queue Depth High - Kafka]
FAIL --> C7[Alert: SLO Burn Rate - Service C]
FAIL --> C8[100+ more alerts...]
C1 --> ENG[On-Call Engineer receives 120 notifications]
C2 --> ENG
C3 --> ENG
C4 --> ENG
C5 --> ENG
C6 --> ENG
C7 --> ENG
C8 --> ENG
ENG --> FATIGUE[Alert Fatigue]
FATIGUE --> MISS[Miss real incident]
FATIGUE --> DELAY[MTTR: 90+ minutes]
style DEP fill:#fecdd3,color:#1e293b
style FATIGUE fill:#fecaca,color:#1e293b
style MISS fill:#fecaca,color:#1e293b
After AIOps — One incident with full context:
graph TD
DEP[Deployment at 03:00] --> COLLECT[Telemetry Collection Layer]
COLLECT --> AD[Anomaly Detection Engine]
AD --> CORR[Alert Correlation Engine]
CORR --> RCA[Root Cause Analysis]
RCA --> DEC[Decision Engine]
RCA -.->|when uncertain| INV[Investigation Engine\nread-only, LLM optional]
INV -.->|evidence brief| DEC
DEC --> PROP[Typed Remediation Proposal]
DEC --> TICKET[Single Incident Ticket\nwith full context]
PROP --> SAFE[Independent Safety Engine\npolicy + blast radius]
SAFE --> CANARY[Canary action]
CANARY --> VERIFY[Independent verification]
VERIFY -->|outcome proven| RESOLVED[Incident resolved]
VERIFY -->|failed or uncertain| TICKET
TICKET --> ENG[On-Call Engineer receives\n1 structured alert with root cause]
style DEP fill:#fecdd3,color:#1e293b
style RESOLVED fill:#e2e8f0,color:#1e293b
style ENG fill:#e2e8f0,color:#1e293b
Quantified Impact¶
Based on real production deployments:
| Metric | Before AIOps | After AIOps | Improvement |
|---|---|---|---|
| Alerts per incident | 120–500 | 1–3 | 99% reduction |
| MTTR | 60–120 minutes | 3–15 minutes | 85% reduction |
| False positive rate | 60–80% | 5–15% | 75% reduction |
| On-call interruptions / week | 40–80 | 5–10 | 87% reduction |
| Auto-remediated incidents | 0% | 40–60% | New capability |
| Incident context at page time | 0% | 80%+ | New capability |
Note: These numbers require mature telemetry. You cannot achieve these results in the first month. Plan for a 6-month maturity path.
Three Problems Humans Cannot Scale¶
- Volume: Telemetry grows super-linearly with services × instances × label cardinality.
- Velocity: Modern MTTD targets are seconds–minutes; humans read dashboards in minutes–hours.
- Variety: Metrics, logs, traces, events, deploys, feature flags — the human brain struggles to “join” multi-signal data at 3 a.m.
AIOps is not “smarter than a senior SRE.” It scales those three axes when (and only when) data + topology + feedback loops are good enough.
Tip
Big tech case studies (summary): many hyperscale organizations publish 80–95% noise reduction via correlation + topology before talking about auto-remediation. Industry details and patterns: 15 — Big Tech AIOps and 16 — E-commerce & Banking.
3. Mental Models: OODA & Problem Framing¶
KEY IDEA
On-call is a decision loop under time pressure. AIOps does not replace that loop — it shortens, standardizes, and automates each step so humans only enter when judgment is required.
3.1 OODA Loop for On-Call¶
OODA (Observe → Orient → Decide → Act) originates in military strategy; in SRE it is a highly useful mental model:
| Step | Manual on-call | AIOps automation |
|---|---|---|
| Observe | Open 8 Grafana tabs, grep logs, chase traces | Continuous ingest metrics/logs/traces; anomaly windows |
| Orient | “Have I seen this? Recent deploy? Which dependency?” | Topology + change correlation + similar-incident retrieval |
| Decide | Choose runbook / escalate / wait for more signal | Risk matrix + confidence gate + policy engine |
| Act | kubectl / console / ticket | SSM / operator / approved playbook + audit |
| (Hidden) Verify | Refresh dashboard 5 minutes later | Post-action verification SLO; auto-rollback remediation |
flowchart LR
O[Observe] --> OR[Orient]
OR --> D[Decide]
D --> A[Act]
A --> V[Verify]
V --> L[Learn]
L --> O
subgraph Human["Humans still own"]
OR2[Ambiguous judgment]
D2[High risk / ethics / compliance]
end
subgraph Machine["AIOps prioritizes automation"]
O2[Collect & anomaly]
A2[Low-risk remediation]
V2[Verify & label]
end
Automation of OODA ≠ remove human
Automating Observe/Act is easy; Orient/Decide is hard and dangerous under false confidence. Design “human in the loop” at the right places (high-risk Decide), not human review everywhere (that creates a new bottleneck).
3.2 Problem Framing Canvas¶
Every incident (and every AIOps ticket) should be framed as:
Signal → Noise → Decision → Action → Verify → Learn
| Stage | Key question | Expected output | Anti-pattern |
|---|---|---|---|
| Signal | Which signals deviate from baseline / SLO? | Candidate anomalies | Static alerts ignoring seasonality |
| Noise | Which are effects, which are causes? | 1–3 event clusters | 200 independent pages |
| Decision | Risk / blast radius / who is allowed? | Plan + confidence + owner | “LLM said so, so do it” |
| Action | Smallest reversible action? | Idempotent playbook | One-shot script with no rollback |
| Verify | Did SLO / error budget recover? | Pass/fail within N minutes | “Deploy done = done” |
| Learn | Correct/incorrect label for retrain? | Training signal + postmortem note | No feedback → model stagnates |
Use the canvas when reviewing AIOps design
For each pipeline stage, write clearly: input signal, noise filter, decision policy, action surface, verify metric, learn sink. If any cell is missing — that stage is not production-ready.
3.3 Why Mental Models Matter More Than Tools¶
Tools (Prometheus, Kafka, Isolation Forest, LLM) change every 2–3 years. OODA + framing canvas last longer:
- Helps onboard juniors: “Which OODA step are you in?”
- Helps postmortems: “Did we lose at Observe (missing signal) or Orient (wrong topology)?”
- Helps roadmap: automate outside-in — Observe/Act first, Decide later.
Note
Check question: In your team’s last incident — was MTTD slow because of Observe (missing metric) or Orient (had data but did not understand it)? The improvement actions are completely different.
4. AIOps vs AI SRE (Agentic)¶
KEY IDEA
In 2025–2026, public discourse shifted from “AIOps platform” to “AI SRE / agentic operations”: multi-step agents, tool-use, ticket-to-fix. This is not pure marketing — but it also does not replace classical AIOps foundations.
Short Comparison¶
| Dimension | AIOps (classical / pipeline) | AI SRE (agentic) |
|---|---|---|
| Architecture | Fixed stages: detect → correlate → RCA → remediate | Agent plans dynamically, calls tools in context |
| Strengths | Clear latency budget, easy audit, more deterministic | Flexible on novel incidents, natural runbook/ticket reading |
| Weaknesses | Hard on unseen failure modes | Non-deterministic, hard to bound latency/cost, may hallucinate actions |
| Data needed | Clean time-series + topology + labels | + knowledge corpus + tool schemas + strong guardrails |
| When to prioritize | Noise reduction, SLO burn, known-class failures | Multi-hop investigation, “explain this outage”, draft postmortem |
| 2025–2026 risk | Overfitting a rigid pipeline | Agent loops burn tokens; unsafe tools; shadow IT agents |
Do not replace the pipeline with pure agents
An agent without a deterministic bypass is a knowledge SPOF. Safe pattern: AIOps pipeline as the backbone (Observe/Noise/Verify); agents support Orient (investigation) and draft Learn (postmortem). High-risk Action still goes through a policy engine.
Public Discourse — How to Read It Correctly¶
- Vendor demos of “agent fixes prod in 30s” usually assume perfect topology/runbooks — rare in real environments.
- Evaluate agentic AI SRE by: tool allowlist, blast radius, human approval gates, cost per investigation, false action rate — not only demo latency.
- Historical incidents (retry storm, partial brownout): agents with weak topology can amplify rather than heal. See 17 — Famous Incidents.
2026 selection rule
- Failure class repeated ≥3 times + stable playbook → pipeline/automation.
- Rare failure class + multi-source reading needed → agent investigation, not auto-act.
- No labels/feedback yet → stop agentic rollout; build the flywheel first (section 12).
5. Edge Cases Early: Partial & Metastable Failures¶
KEY IDEA
Most AIOps tutorials demo “service down 100%.” Real production dies from brownout, partial failure, metastable failure, retry storm — where static thresholds and binary healthy/unhealthy models are both blind.
5.1 Brownout¶
Definition: The system is still “up” (health checks pass) but quality degrades: P99 latency rises, error rate 2–8%, some tenants are slow.
| Characteristic | Consequence for naive AIOps |
|---|---|
| Availability probe green | No page; customers already complaining |
| Slow SLO burn | 5xx > 5% threshold never hit |
| Only one region/shard | Global average hides local pain |
Mental model for handling:
- Alert on user-journey SLIs and burn rate, not only binary up/down.
- Anomaly by segment (tenant, region, endpoint class).
- RCA must understand “degraded dependency” vs “dead dependency.”
5.2 Partial Failure¶
A subset of instances/pods/partitions fails; the load balancer still routes some traffic into the bad set.
- Correlation needs topology + deployment unit, not only service name.
- Safe remediation: cordon/drain the bad set, do not restart the whole cluster (may trigger a thundering herd).
5.3 Metastable Failures¶
The system falls into a bad stable state: after the original trigger is gone, the system does not return to healthy on its own (queue backlog + timeout + retry + cache stampede).
Warning
Auto-remediation that “scales up pods” during a metastable queue can raise cost without breaking metastability (and may increase contention). You need playbooks for “shed load / break retry / purge poison,” not only scale.
5.4 Retry Storms¶
Client retries without jitter + short timeouts → dependency overload → more client timeouts → more retries.
| Signal | Meaning |
|---|---|
| Outbound RPS rises while success rate falls | Possible storm |
| Queue depth rises + consumer lag + high CPU | Feedback loop |
| Error budget burns across many services at once | Cascade |
AIOps implications:
- Detection must look at client + server together.
- Prefer client-side remediation (circuit break, bulkhead) before blind server scale.
- Record this failure class in the knowledge base — it is a repeating pattern in most large systems.
5.5 “Early Edge Case” Table for Design Review¶
| Edge case | Suggestive signals | AIOps actions to avoid | Correct direction |
|---|---|---|---|
| Brownout | SLO burn, P99, satisfaction | Only check /health | Segmented anomaly + UX SLI |
| Partial failure | Instance-level error skew | Restart all | Isolate bad subset |
| Metastable | Persists after root cause fixed | Scale only | Load shed / drain / cooldown |
| Retry storm | Retry ratio, outbound RPS | Open more connections | Backoff, break, protect core |
| Silent drop | Traffic drop without errors | No page because “few errors” | Volume anomaly + business KPI |
Note
Check question: Can your pipeline detect “traffic drops 40% but error rate is 0%”? If not — you are blind to a classic outage class (bad deploy dropping requests, misconfigured routes, partial DNS).
6. AIOps Maturity Model¶
KEY IDEA
Like learning to drive — you learn straight roads before corners, then highways. You cannot skip levels. An organization at Level 0 (no monitoring) that tries to build Level 5 AIOps (full autonomy) will fail 100% because there is no baseline data to train models. This maturity model helps you know where you stand and what the next step is.
Tip
Most common trap: "We want to skip Levels 1–2 and jump straight to ML." This is not feasible because ML needs at least 3–6 months of clean telemetry history to train. There is no shortcut.
graph LR
L0[Level 0\nReactive] --> L1[Level 1\nObservable]
L1 --> L2[Level 2\nAlert-Driven]
L2 --> L3[Level 3\nAnomaly-Aware]
L3 --> L4[Level 4\nCorrelated]
L4 --> L5[Level 5\nAutonomous]
style L0 fill:#fecaca,color:#1e293b
style L1 fill:#ff8c00,color:#1e293b
style L2 fill:#ffd700,color:#000
style L3 fill:#90ee90,color:#000
style L4 fill:#e2e8f0,color:#1e293b
style L5 fill:#e2e8f0,color:#1e293b
Level 0 — Reactive ("We learn about failures from customers")¶
- No structured monitoring
- Incidents discovered via user feedback/complaints
- No runbooks
- No on-call rotation
Typical organization: Early-stage startup, <5 engineers
Level 1 — Observable ("We have metrics and logs")¶
- Basic Prometheus + Grafana
- Centralized log management (ELK or Loki)
- Manual dashboards
- Some static threshold alerts
Typical organization: Growing startup with a dedicated SRE team
Gap: Too many static alerts → alert fatigue
Level 2 — Alert-Driven ("We get paged when something breaks")¶
- Comprehensive alerting with Alertmanager
- PagerDuty/OpsGenie integration
- Incident management (Opsgenie/Jira)
- Runbooks exist but handling is manual
Typical organization: Mid-size company, 50–200 engineers
Gap: Alert volume overwhelms on-call. Cascading failures create alert storms. MTTR depends on individual expertise.
Level 3 — Anomaly-Aware ("We detect problems before customers notice")¶
- Statistical anomaly detection on key metrics
- Log anomaly detection (log pattern change detection)
- SLO-based alerts (burn rate)
- Alert volume reduced via noise filtering
Typical organization: Company with a dedicated Platform Engineering team
Gap: Anomalies are detected but correlation is still manual. Every alert still requires human investigation.
Level 4 — Correlated ("We automatically see the full picture")¶
- Multi-signal correlation (metrics + log + trace correlation)
- Topology-aware alert grouping
- Automatic root cause ranking
- LLM-generated incident summaries
- Runbook automation for common failure patterns
Typical organization: Large enterprise with 200+ engineers and a dedicated AIOps team
Gap: Remediation still requires human approval for most actions.
Level 5 — Autonomous ("The system heals itself")¶
- Closed-loop automated remediation
- Self-improving knowledge base
- Proactive capacity/resource management
- Predictive failure prevention
- Human oversight with full audit trail
Typical organization: Hyperscalers, highly mature cloud-native companies
Gap: Trust and governance. How do you auto-remediate safely at scale?
Quick Self-Assessment (15 minutes)¶
Score 0/1 per question (total /10 ≈ maps to level):
- Every user-facing service has RED/USE or equivalent?
- Structured JSON logs + trace context?
- Page only on user impact / SLO burn?
- Service dependency topology exists (even if manual)?
- Anomaly/dynamic baseline on ≥ top 20 SLIs?
- Alert storm < 10 pages for one root cause?
- RCA suggestion correct ≥ 50% on known classes?
- Post-incident feedback labels are mandatory?
- Low-risk remediation has auto + verify?
- AIOps pipeline fail-open is tested regularly?
| Score | Suggested level |
|---|---|
| 0–2 | L0–L1 |
| 3–4 | L2 |
| 5–6 | L3 |
| 7–8 | L4 |
| 9–10 | Moving to L5 (still needs governance) |
Note
Check question: Which level is your organization at? What specifically do you need to build to reach the next level?
7. 12-Month Maturity Journey¶
KEY IDEA
The maturity model is a static map. The 12-month journey is an execution script: month-by-month outcomes, not just a feature list. Use it to align leadership, hiring, and ROI expectations.
Months 1–2 — Foundation & Honesty¶
| Outcome | Metric |
|---|---|
| Service inventory + owner | 100% critical services have an owner |
| Metric/log naming standards | Lint/CI for conventions |
| Baseline MTTD/MTTR/page volume | Continuous 4-week numbers |
| “Single pane” not yet important | Prefer correct signal over pretty UI |
Risk: Over-tooling. Counter: do not buy an AIOps platform in month 1.
Months 3–4 — Alert Hygiene & SLO¶
| Outcome | Metric |
|---|---|
| SLOs for top journeys | ≥ 5–10 business SLIs |
| Reduce useless pages | −30–50% pages/week |
| Runbook skeleton | Top 20 alerts have runbook links |
| Manual change correlation | Deploy ID attached to incidents |
Months 5–6 — Statistical Detection¶
| Outcome | Metric |
|---|---|
| EWMA/Z-score/STL on golden signals | Preliminary precision measurable |
| Shadow mode (no paging) | Compare FP/FN for 4–6 weeks |
| Kafka/feature pipeline MVP | Latency budget for stages 1–2 |
| Soft break-even | Prevent 1 major outage via early detect |
Tip
Month 6 is a leadership checkpoint: if telemetry is still dirty, stop advanced ML, return to data quality. See the ROI section — this is often the cashflow bottom of the investment.
Months 7–8 — Correlation & RCA v1¶
| Outcome | Metric |
|---|---|
| Topology-aware grouping | Alerts/incident → 1–5 |
| Heuristic RCA ranker | Top-3 contains true root ≥ 40–60% |
| LLM summary (read-only) | Time-to-context −50% |
| Human-approved remediation | 5–10 low-risk playbooks |
Months 9–10 — Feedback & Flywheel¶
| Outcome | Metric |
|---|---|
| Mandatory correct/incorrect labels | ≥ 80% incidents labeled |
| Retrain/refresh baselines | Monthly schedule |
| False positive budget | FP pages < X%/week |
| Chaos / game day 1 | Verify fail-open + one remediation |
Months 11–12 — Selective Autonomy¶
| Outcome | Metric |
|---|---|
| Auto-remediation class A (safe scale/restart) | 20–40% class A incidents auto |
| Verify + circuit breaker | 0 major self-inflicted outages |
| AIOps cost dashboard | $/incident investigated |
| Y2 roadmap (agentic investigation?) | Go/no-go decision with data |
gantt
title 12-month AIOps journey (narrative)
dateFormat YYYY-MM
section Foundation
Inventory & baselines :a1, 2026-01, 2M
SLO & alert hygiene :a2, after a1, 2M
section Intelligence
Statistical AD shadow :b1, after a2, 2M
Correlation + RCA v1 :b2, after b1, 2M
section Autonomy
Flywheel labels + retrain :c1, after b2, 2M
Selective closed-loop :c2, after c1, 2M
Important
This journey assumes ~2 SREs + part-time platform. Fewer people → stretch to 18 months; do not compress the timeline by dropping verify/feedback.
8. ROI and Business Case¶
KEY IDEA
To "sell" AIOps to leadership, you need concrete numbers, not theory. Simple formula: Downtime cost × incident frequency × % MTTR improvement = annual value. Break-even is usually reached after preventing a single major incident (often months 6–9).
Cost of Downtime¶
Industry benchmarks (Gartner, IDC):
| Industry | Average cost/minute of downtime |
|---|---|
| E-commerce | $6,800 – $11,000 |
| Financial Services | $100,000+ |
| Healthcare | $5,000 – $9,000 |
| SaaS B2B | $1,500 – $5,000 |
Verticals (different ROI patterns) are analyzed in more depth in 16 — E-commerce & Banking.
AIOps Investment vs Return¶
xychart-beta
title "AIOps ROI Over 24 Months"
x-axis [M1, M3, M6, M9, M12, M18, M24]
y-axis "Cumulative Value ($K)" -500 --> 2000
line [-100, -300, -400, -200, 200, 800, 1800]
bar [-100, -300, -400, -200, 200, 800, 1800]
Typical investment breakdown:
| Item | Monthly cost |
|---|---|
| Engineer time (2 SREs × $15K) | $30,000 |
| Infrastructure (Kafka, Prometheus, Loki) | $3,000–8,000 |
| LLM API calls (Claude/GPT-4) | $500–2,000 |
| ML compute (anomaly detection) | $500–1,500 |
| Total | ~$35,000–$42,000/month |
Typical returns:
| Item | Annual value |
|---|---|
| Downtime reduction (85% MTTR improvement) | $200,000–$500,000 |
| Reduced on-call hours (10 hours/week saved) | $150,000 |
| Reduced alert fatigue (engineer productivity) | $100,000 |
| Total | $450,000–$750,000/year |
Break-even: Usually 6–9 months after preventing a single major incident.
Economics of MTTD vs MTTR vs Change Failure Rate (DORA)¶
KEY IDEA
MTTR is cited most often, but improving MTTD and reducing change failure rate (CFR) often deliver more durable ROI. DORA Four Keys link directly to AIOps: Deployment Frequency, Lead Time, CFR, Time to Restore.
Incident Timeline Decomposition¶
| Component | Primary AIOps lever | Economic note |
|---|---|---|
| MTTD | Anomaly, SLO burn, business KPI | Every earlier minute reduces full outage cost |
| MTTK (time to know) | Correlation, RCA, LLM context | Cuts “45-minute war room just to understand” |
| MTTR | Runbook auto, rollback, scale | Only safe when MTTK is correct |
| CFR | Change-aware detection, canary signal | Reduces incident count, not only duration |
Why Optimizing MTTR Alone Can Mislead¶
- Teams that are “great at firefighting” → low MTTR but high CFR → hidden costs (context switch, burnout, reputation).
- AIOps that only auto-remediates without improving change quality → you automate a bad loop.
- Measure error budget burn rate and pages per deploy alongside MTTR.
Expanded ROI Model (Leadership One-Pager)¶
Annual_value ≈
(Incidents/year × Cost_per_minute × ΔMTTR_minutes)
+ (Prevented_incidents/year × Avg_incident_cost) # from better MTTD + CFR
+ (Oncall_hours_saved × Fully_loaded_engineer_cost)
+ (Engineering_focus_hours × Opportunity_value) # less noise
− (AIOps_platform_cost + LLM + ML + eng_time)
DORA linkage
- Elite performers: Time to restore < 1h, CFR 0–15%. AIOps Levels 3–4 support fast restore without sacrificing CFR if verify + change correlation are strong enough.
- Internal reports should have 4 boxes: MTTD, MTTR, CFR, pages/engineer/week — not only “alerts reduced.”
Numeric Example (Hypothetical SaaS B2B)¶
| Parameter | Before | After 12 months |
|---|---|---|
| Sev-1 / year | 12 | 8 (−CFR & early detect) |
| Impact minutes / Sev-1 | 90 | 20 |
| $/minute | $3,000 | $3,000 |
| Impact cost/year | $3.24M | $0.48M |
| Δ | ~$2.76M (before AIOps OPEX) |
OPEX ~$0.45M/year → raw ROI still very strong — if downtime cost and Sev-1 counts are measurable. Replace with your org’s real numbers; do not copy demo figures.
Warning
ROI from “99% fewer alerts” does not automatically become money if those alerts were not revenue-related. Always anchor to user journey / revenue path / regulatory SLA.
9. Org Design & Ownership (RACI)¶
KEY IDEA
AIOps dies not only from wrong models — but because nobody owns precision, runbooks, or the false positive budget. Three roles often collide: Platform team, Product SRE, AIOps/ML eng.
Roles¶
| Role | Core responsibilities | Should not own |
|---|---|---|
| Platform team | Telemetry standards, collectors, Kafka/Prom reliability, multi-tenant platform SLOs | Business-specific models; paging product at 3 a.m. because “the platform is cool” |
| Product SRE | Service SLI/SLO, runbooks, on-call, approve remediation risk for their services | Hosting AIOps Kafka themselves; training Isolation Forest from scratch |
| AIOps / ML eng | Detectors, correlation, RCA, LLM/RAG, evaluation, flywheel | Replacing product on “accept risk”; silent prod config changes without audit |
Sample RACI (R = Responsible, A = Accountable, C = Consulted, I = Informed)¶
| Capability | Platform | Product SRE | AIOps ML | Eng Manager / Risk |
|---|---|---|---|---|
| Metric/log standards | A/R | C | C | I |
| Service SLO & page policy | C | A/R | C | I |
| Anomaly models (global) | C | C | A/R | I |
| Topology source of truth | A | R (declare deps) | R (consume) | I |
| Runbook content | I | A/R | C (schema) | I |
| Auto-remediation policy | C | A (per service) | R (engine) | A (org risk) |
| FP budget / model eval | C | C | A/R | I |
| LLM prompt & tool allowlist | C | C | A/R | C (security) |
| Incident labels (feedback) | I | R | A (pipeline) | I |
| Cost of AIOps stack | A/R | I | R (LLM spend) | C |
Important
Accountable for auto-action must be the service risk owner, not the ML eng. ML eng is accountable for suggestion quality and engine safety; product SRE is accountable for whether auto is enabled on their service.
Team Model by Scale¶
| Scale | Org suggestion |
|---|---|
| < 30 eng | 1 platform-minded SRE doubles as AIOps; no separate ML eng yet |
| 30–150 eng | Platform owns pipeline; 1 AIOps specialist; product SRE owns SLO |
| 150+ eng | AIOps platform + embedded ML; clear RACI; office hours |
| Multi-BU enterprise | Multi-tenant platform; cost chargeback; shared model + local adapters |
Organizational Anti-Patterns¶
- ❌ “AI team builds AIOps in isolation” → models do not match on-call reality.
- ❌ “Every product builds its own correlation” → 12 different alert-grouping schemes.
- ❌ No false positive budget → product SRE silently disables detectors.
- ❌ AIOps platform on-call and product on-call share the same page storm → double burnout.
Tip
Start every AIOps program with 1 RACI page + SLOs for the pipeline itself. If you cannot write that, you are not ready to hire an “AIOps engineer.”
10. Architecture Philosophy¶
KEY IDEA
These five principles are the "compass" for every design decision. When torn between two options, ask: "Which principle applies here?" They are not optional best practices — they are lessons from systems that actually failed.
Five Principles of Production AIOps¶
Principle 1: Data First, Intelligence Second¶
Tip
Why: No ML model can compensate for missing or overly noisy telemetry. That is why chapters 01–06 (Observability stack) come before chapters 07–11 (AI/ML). There is no shortcut here.
Before building anomaly detection: - Ensure 100% metrics coverage for all services - Ensure structured logging (JSON, not free-form text) - Ensure distributed tracing with 100% context propagation
Principle 2: Fail Open, Not Closed¶
Tip
Why: If the AIOps pipeline itself fails (Kafka down, correlation engine crash), engineers must still receive alerts — via a direct bypass from Alertmanager. "Fail open" = lose intelligence features but not alerting. "Fail closed" = dangerous.
If the AIOps pipeline fails: - Alerts must still reach engineers (bypass the correlation engine) - Runbook automation must be turned off, not fail silently - The pipeline itself must be observable
Principle 3: Human in the Loop for High-Risk Actions¶
Define a remediation risk matrix:
| Risk Level | Example | Action |
|---|---|---|
| Low | Scale up pods | Fully automatic |
| Medium | Rollback deployment | Automated + notify |
| High | Database failover | Require approval |
| Critical | Multi-region failover | Human only |
Principle 4: Every Decision Must Be Explainable¶
If the system rolls back a deployment: - Log the specific anomaly that triggered the action - Log correlation evidence - Log the RCA confidence score - Log the specific runbook executed - Store in an immutable audit log
This is both a technical requirement (for debugging) and a legal/compliance requirement.
Principle 5: Degrade Gracefully¶
Tip
Why: A system that is fully automatic when healthy, but completely silent when broken, is more dangerous than having no AIOps. You need "fallback tiers" — Autonomous → Semi-Autonomous → Standard → Manual — like an aircraft with multiple backup systems.
stateDiagram-v2
[*] --> Autonomous: All components healthy
Autonomous --> SemiAutonomous: LLM unavailable
Autonomous --> Correlated: Correlation engine down
Correlated --> Standard: Anomaly detection down
Standard --> ManualAlert: Alert pipeline down
ManualAlert --> [*]: Recovery
SemiAutonomous --> Autonomous: LLM recovered
Correlated --> Autonomous: Correlation recovered
Principle 6 (extension): Measure the measurer¶
The AIOps pipeline must have its own SLOs: ingest lag, detection freshness, correlation success rate, remediation verify rate. Without that, you build an invisible SPOF — see failure modes in section 13.
11. The AIOps Pipeline¶
KEY IDEA
This pipeline is the "map" of the entire handbook. Each chapter (01–12) maps to one or more stages. Understanding the end-to-end pipeline helps you know where each component lives and what purpose it serves.
Why design 12 stages?
Not complexity for its own sake — each stage has a clear responsibility and can fail independently. A monolith architecture lets one small bug take everything down. This applies Single Responsibility to the AIOps pipeline.
flowchart TD
subgraph Telemetry["1. Telemetry Layer"]
M[Metrics\nPrometheus]
L[Logs\nLoki]
T[Traces\nTempo]
end
subgraph Collection["2. Collection Layer"]
OTC[OpenTelemetry Collector]
PROM[Prometheus Scraper]
ALLOY[Grafana Alloy / OTel Collector]
end
subgraph DataPlane["3. Data Plane (Ch.06)"]
NORM[Normalize]
ENR[Enrich]
VAL[Validate / DQ]
STORE[Hot / Warm / Cold store]
FS[Feature store]
end
subgraph Transport["4. Transport Layer (Ch.07)"]
KAFKA[Kafka Topics\nmetrics / logs / traces / alerts]
end
subgraph Feature["5. Feature serve"]
FE[Windowing / vectors\nonline + offline]
end
subgraph Detection["6. Detection Layer"]
STAT[Persistent Detector\nMAD freeze / burn-rate]
ML[Multivariate Candidate\nonly after replay proves value]
LOG[Log Anomaly\nDrain / DeepLog]
end
subgraph Correlation["7. Correlation Engine"]
DEDUP[Deduplication]
GROUP[Grouping\ntopology-aware]
CAUSE[Causal Ordering]
end
subgraph RCA["8. Root Cause Analysis"]
CG[Dependency Graph\n+ downstream weight]
GNN[Trace Error Propagation\n+ first-red ordering]
RANK[Multi-signal Ranker\n+ counter-evidence]
end
subgraph LLM["9. Investigation Engine — LLM optional"]
RAG[RAG\nRunbook Retrieval]
CTX[Context Assembly]
INV[Investigation Chain]
end
subgraph Decision["10. Decision Engine"]
RISK[Risk Scorer]
CONF[Confidence Gate]
PLAN[Remediation Planner]
end
subgraph Remediation["11. Remediation"]
SSM[AWS SSM Automation]
K8S[Kubernetes Operator]
LAMB[Lambda Functions]
end
subgraph Verification["12. Verification"]
VER[Post-action Verification\nDid it work?]
end
subgraph KB["13. Knowledge Base"]
INC[Incident Store]
RB[Runbook Index]
FB[Feedback Loop]
end
Telemetry --> Collection
Collection --> DataPlane
DataPlane --> Transport
Transport --> Feature
STORE --> Feature
FS --> Feature
Feature --> Detection
Detection --> Correlation
Correlation --> RCA
RCA --> Decision
RCA -.->|uncertain case| LLM
LLM -.->|evidence brief| Decision
Decision --> Remediation
Remediation --> Verification
Verification --> KB
KB --> LLM
KB --> Detection
Detection --> FS
Details on when you need normalize/enrich/store/feature: 06 — Telemetry Data Plane.
Pipeline Latency Budget¶
ILLUSTRATION — SLO per stage
These are real numbers from production deployments. If any stage exceeds its SLO, optimize or scale before deploying.
| Stage | P50 Latency | P99 Latency | SLO |
|---|---|---|---|
| Telemetry → Data plane | 100ms | 500ms | <1s |
| Data plane → Kafka | 100ms | 500ms | <1s |
| Kafka → Feature serve | 200ms | 1s | <2s |
| Feature → Detection | 500ms | 2s | <5s |
| Detection → Correlation | 100ms | 500ms | <2s |
| Correlation → RCA | 2s | 10s | <15s |
| RCA → LLM Investigation | 5s | 30s | <60s |
| Decision → Remediation | 2s | 5s | <10s |
| End-to-End (Detect → Remediate) | ~10s | ~50s | <5 minutes |
Important: The "detect → remediate" loop must complete within 5 minutes for most incident types. Beyond 5 minutes, MTTR falls into the manual-intervention zone.
OODA → Pipeline Stage Mapping¶
| OODA / Canvas | Stage |
|---|---|
| Observe / Signal | 1–5 Telemetry → Detection |
| Noise | 6 Correlation |
| Orient | 7–8 RCA + LLM |
| Decide | 9 Decision Engine |
| Act | 10 Remediation |
| Verify | 11 Verification |
| Learn | 12 Knowledge + flywheel |
12. Data Flywheel¶
KEY IDEA
AIOps is not “set and forget.” Value compounds in a loop: incident → label → retrain → better detection → less noise → higher-quality labels. Missing one link, models degrade (distribution shift) and the team loses trust.
flowchart LR
I[Incident / Alert outcome] --> L[Human or auto label]
L --> S[Labeled store]
S --> T[Retrain / recalibrate]
T --> D[Better detection & RCA]
D --> C[Cleaner pages + context]
C --> I
Minimum Label Types¶
| Label | Who assigns | Used for |
|---|---|---|
true_positive / false_positive |
On-call | Detector precision |
root_cause_service |
On-call / postmortem | RCA ranker |
remediation_correct |
On-call | Policy & playbook |
user_impact: none|partial|full |
Incident commander | Priority & SLO mapping |
suppress_reason |
On-call | Controlled noise rules |
Retrain / Refresh Cadence¶
| Component | Suggested cycle | Early trigger |
|---|---|---|
| Statistical baselines | Continuous roll / weekly | Seasonality break, major launch |
| Unsupervised AD | Monthly | Precision drop, drift PSI/KL |
| Supervised RCA | Monthly–quarterly | Major topology change |
| Runbook RAG embeddings | On runbook change | — |
| LLM prompts/tools | Change-managed | Hallucination incident |
Warning
Labels from on-call at 3 a.m. are noisy. Design label UX for ≤ 2 clicks; review conflicting labels weekly. Garbage flywheel → garbage model faster than no model.
Summary Case Study (Big Tech Pattern)¶
Many large organizations report: after mandatory incident tagging + offline evaluation, detector precision improves quarter over quarter — not from more complex models, but from feedback data. Pattern details: 15 — Big Tech AIOps.
Tip
Flywheel KPIs: % incidents labeled, time-to-label, precision@k trend, % auto-actions verified. If you only measure “models deployed” — you are chasing vanity metrics.
13. When AIOps Fails¶
KEY IDEA
This is the most important section to read before you start building. Each failure mode below has happened in real production organizations. Understanding them first lets you design prevention from day one, instead of learning through pain.
Understanding failure scenarios is as important as understanding success cases.
Failure Mode 1: Garbage In, Garbage Out¶
Symptom: High false positive rate (>30%), models detect noise instead of real anomalies
Root cause: Inconsistent metric labels, missing labels, cardinality explosions, log formats changed without coordination
Prevention:
- Enforce metric naming standards with CI tests
- Use OpenTelemetry semantic conventions
- Use a schema registry for log formats
- Monitor data quality on the telemetry pipeline itself
Failure Mode 2: Distribution Shift¶
Symptom: Anomaly detection accuracy degrades gradually over time
Root cause: Traffic patterns change (new feature deploys, seasonal peaks), but models are not retrained
Prevention:
- Monthly model retrain pipeline
- Monitor model performance metrics (precision, recall, F1)
- Detect distribution drift with KL-divergence or PSI
- Blue-green deployment for ML models
Failure Mode 3: Remediation Blast Radius¶
Symptom: Automated remediation makes the incident worse
Root cause: Wrong root cause, wrong remediation choice, or no verification step
Prevention:
- Remediation circuit breakers (stop if verification fails twice)
- Blast radius limits (scale at most 20% of pods at once)
- Canary remediation (try 1 pod first, verify, then apply fully)
- Human approval gate for any action above "low risk"
Failure Mode 4: The Pipeline Becomes the SPOF¶
Symptom: AIOps pipeline outage causes missed incidents
Root cause: Alerts flow through the correlation engine; correlation engine crashes; alerts are lost
Prevention:
- Always maintain a bypass path: Alertmanager direct → PagerDuty
- The AIOps pipeline is only an enhancement, never the only path
- The pipeline itself must be monitored by a simpler monitoring system
Failure Mode 5: LLM Hallucination in Remediation¶
Symptom: LLM suggests a runbook action that does not match the real incident
Root cause: LLM invents plausible-sounding remediation steps that are actually wrong
Prevention:
- LLM may only choose from pre-approved runbook actions
- LLM output is a JSON structure with parameters, not free-form commands
- All LLM suggestions must pass a confidence score threshold
- Human review for any action outside the approved runbook library
Failure Mode 6: Metastable Amplification (see section 5)¶
Symptom: Auto-scale / retry mitigation makes the bad stable state worse.
Prevention: Class-aware playbooks; load shedding before blind scale; cooldown; human gate when queue + error rise together.
Failure Mode 7: Social Failure — Trust Collapse¶
Symptom: On-call disables AIOps notifications; returns to manual dashboards.
Cause: High FP for 2–3 consecutive weeks with no owner to fix.
Prevention: FP budget; blameless tuning rota; shadow mode before page mode.
Note
Check question: Among the failure modes above, which is most dangerous in month 3 of a rollout? Why?
Hint: month 3 usually has no auto-remediation yet — GIGO + trust collapse are more dangerous than remediation hallucination. By month 12, blast radius and metastable amplification are more frightening.
Classic public postmortems (cascade, config, retry) are summarized in 17 — Famous Incidents.
14. Building vs Buying¶
KEY IDEA
"Build vs buy" has no one-size-fits-all answer. Basic principle: buy what is commodity (storage, compute, message queue) and build what is specific to your system (anomaly detection models, RCA logic, runbook automation). Nobody can sell you a model that already knows your topology.
Tip
Main trade-off: Vendor solution = 6 months faster, 3–5× more expensive, less customizable. Build = ~80% cheaper, full control, but needs 6–12 months and a skilled team.
Build vs Buy Decision Matrix¶
| Capability | Build | Buy (Vendor) | Hybrid |
|---|---|---|---|
| Metrics collection | ✅ High control, lower cost | ❌ Vendor lock-in | Prometheus + CloudWatch |
| Log aggregation | ✅ Free Loki | ❌ Expensive at scale | Loki + CloudWatch |
| Anomaly detection | ✅ Custom models for your patterns | ⚠️ Generic, high FP rate | Custom models on open-source pipeline |
| Alert correlation | ✅ Topology-aware | ⚠️ Generic rules | Build yourself |
| Root cause analysis | ✅ Must know your topology | ❌ Cannot know your topology | Build yourself |
| LLM Investigation | ✅ RAG with your runbooks | ❌ Generic, no context | Build with API (Bedrock/OpenAI) |
| Remediation | ✅ Must know your infrastructure | ❌ Limited action catalog | Build with SSM |
Recommendation: Build the intelligence layer. Buy foundational infrastructure components (Kafka → MSK, storage → S3, compute → EKS).
Vendor Options and Trade-offs¶
| Vendor | Strengths | Weaknesses | Cost |
|---|---|---|---|
| Datadog AIOps | Easy setup, good UI | Expensive ($$$), limited customization | $23–$50/host/month |
| Dynatrace | Strong auto-discovery, Davis AI | Very expensive, complex | $40–$70/host/month |
| New Relic | Good observability, applied intelligence | Black-box ML, limited control | $25–$50/host/month |
| PagerDuty AIOps | Strong alert correlation | No custom models, no remediation | $29–$49/user/month |
| Build on OSS | Full control, ~80% cheaper | 6+ months to build, high expertise required | $5–15/host/month for infrastructure |
2025–2026 Decision: Vendor AIOps vs Agentic Add-on¶
- Buy correlation/noise reduction if time-to-value < 90 days is mandatory and team < 2 FTE.
- Keep the action surface (remediation) and topology SoT in your hands — even when buying a vendor.
- Agentic “AI SRE” vendors: require demos on your historical incidents, measure false actions, do not accept synthetic demos only.
15. Common Mistakes & Anti-Patterns¶
KEY IDEA
These are the most common mistakes, distilled from real experience. Not theory — this is what actually happens when organizations deploy AIOps for the first time. Read and remember to avoid repeating them.
Mistake 1: Starting with ML, Not Telemetry¶
Engineers rush to build LSTM-based anomaly detection before ensuring every service emits structured telemetry. Result: the model has nothing to learn from.
Fix: Spend the first 2 months entirely on telemetry coverage and quality.
Mistake 2: Training on Production Incidents Only¶
Rare incident data causes severe class imbalance. Models see 99.9% normal data and only 0.1% incident data.
Fix: Use synthetic anomaly injection for training. Use SMOTE or similar methods to balance classes.
Mistake 3: Static Thresholds for Dynamic Systems¶
Alert when error_rate > 5%. But at 3 a.m. with only 10% traffic, a 1% error rate may already be severe. On Black Friday with 10× traffic, 3% errors may still be acceptable.
Fix: Use dynamic baselines (EWMA, STL decomposition). Alert on deviation from baseline, not absolute values.
Mistake 4: Ignoring Alert Routing Latency¶
Anomaly detection is fast but the LLM investigation chain takes up to 45 seconds. By the time the alert reaches on-call, the incident may have self-healed (or escalated badly).
Fix: Tiered response — send alerts immediately for critical signals; enriched context follows asynchronously.
Mistake 5: No Feedback Loop¶
The system remediates automatically. But was the action correct? Nobody knows. Models never improve.
Fix: Every automated action must be audited. On-call marks each action as "correct", "incorrect", or "unknown". This becomes training data.
Mistake 6: Automating Orient Before Observe Is Solid¶
Agent/LLM investigation on torn telemetry → confident but wrong summaries.
Fix: Gate agentic features after Levels 2–3 and green data-quality SLOs.
Mistake 7: One Global Model for All Services¶
Payment latency patterns ≠ blog CMS. Global model → mass FPs.
Fix: Hierarchical models / per-class baselines; shared platform, local calibration.
Mistake 8: No Kill Switch¶
No way to quickly disable auto-remediation by service/cluster.
Fix: Feature flag + break-glass documented in the war room checklist.
Anti-Pattern Catalog (Quick)¶
| Anti-pattern | Signal | Consequence |
|---|---|---|
| AI washing | “AIOps” slides = 3 thresholds + ChatGPT pasted into tickets | Credibility loss on Sev-1 |
| Dashboard theater | 40 panels, 0 SLOs | MTTD does not improve |
| Alert hoarding | Afraid to delete 2019 rules | Fatigue |
| Root-cause folklore | “Always DNS/Kafka” | RCA bias |
| Remediation cosplay | Restart script with no verify | Restart loop |
| Vendor cosmology | Entire strategy = vendor roadmap | Lock-in + blind to internal topology |
| Hero culture | Only 2 people understand the pipeline | Bus factor = 2 |
| Metric cardinality casino | user_id label on metrics | Prom burns, bill burns |
| Silent suppress | On-call mutes detector | False sense of safety |
| Postmortem without action | 10 pages, 0 owners | Incident repeats |
16. Production Review¶
From a Principal Engineer review of this chapter:
What's Correct ✅¶
- Maturity model is realistic and maps to organizational stages
- ROI numbers are conservative and defensible
- Failure modes are based on real production operations experience
- Pipeline latency budget is implementable
Potential Gaps / Assumptions to Validate¶
- Assumption: LLM inference at <60s P99. This requires GPU-backed inference or a managed API. Verify your specific LLM provider’s SLA carefully.
- Assumption: Kafka as transport layer. For small teams (<5 engineers), Kafka adds operational burden. Consider Redis Streams as a simpler alternative when volume <100K events/second.
- Gap: Multi-tenancy. This handbook assumes a single-tenant AIOps platform. Multi-tenant support (serving multiple business units) significantly increases complexity not covered here.
- Gap: Compliance requirements. SOC2, HIPAA, PCI-DSS add constraints on data retention, encryption, and audit logging that need separate guidance.
Anti-Patterns Identified¶
- ❌ Building AIOps before reaching Level 2 maturity — certain failure
- ❌ Using a single Prometheus instance for all metrics — hits scale limits above 500 services
- ❌ Not instrumenting the AIOps pipeline itself — creates an invisible SPOF
Expanded Production Review Checklist (50+ items)¶
Use this checklist before go-live of each AIOps phase. Mark ✅ / ⚠️ / ❌.
A. Telemetry & data quality (1–10)¶
- 100% critical services emit RED/USE or equivalent
- Structured JSON logs; no fragile regex parse on primary paths
- Trace context propagation across service boundaries
- Semantic conventions / naming lint in CI
- Cardinality budget + alerting on label explosions
- Clock sync / scrape intervals fit detection SLOs
- Data retention enough to train baselines (typically ≥ 4–13 weeks)
- PII/secrets not leaking into metric labels / primary log body paths
- Synthetic canary traffic for important journeys
- Business KPIs (checkout, login, pay) have mappable technical signals
B. Alerting & SLO (11–18)¶
- Page only on meaningful user impact / error budget burn
- Multi-window multi-burn (or equivalent) for Sev-1
- Alert owner + runbook link mandatory
- Silence/mute has expiry and audit
- Dependency alerts do not page duplicate storms
- Night/weekend page volume has a baseline
- “Traffic drop without errors” is covered
- Change/deploy events joinable to alert timeline
C. Detection & ML (19–26)¶
- Shadow mode before page mode for new detectors
- Precision/recall/FP budget by service class
- Drift monitoring (PSI/KL or proxy)
- Retrain/refresh calendar + owner
- Segmented detection (region/tenant/endpoint class) for brownout
- Not relying on one static threshold for seasonal traffic
- Evaluation set with labeled incidents
- Model versioning + model rollback
D. Correlation & RCA (27–33)¶
- Topology source of truth has an update owner
- Stable dedup keys (fingerprint)
- Causal ordering is not just “same time = same cause”
- RCA top-k shows evidence, not only score
- Known false RCA patterns have unit/regression tests
- Incident merge/split UX for on-call
- Time-to-context P50 is measurable
E. LLM / agentic (34–40)¶
- Tool allowlist; no free-form shell on prod
- Structured output (JSON schema) for actions
- RAG only from approved runbooks/policies
- Confidence threshold + human gate for high-risk
- Cost cap per investigation
- Prompt/version change management
- Hallucination postmortem when wrong
F. Remediation & safety (41–48)¶
- Risk matrix Low/Med/High/Critical approved
- Idempotent playbooks
- Verify step mandatory; fail → circuit break
- Blast radius limits (%, region, canary)
- Kill switch per service/cluster
- Fail-open path Alertmanager → page without AIOps
- Game day / chaos for remediation path
- Immutable audit log of actions
G. Org, cost, learn (49–56)¶
- Clear RACI for platform / product SRE / ML
- Separate AIOps pipeline on-call, not blind
- Label rate ≥ 80% of incidents
- Monthly model/ops review
- Cost dashboard (ingest, LLM, compute)
- DORA-linked metrics: MTTD, MTTR, CFR, pages/eng
- Bus factor ≥ 3 for critical paths
- Documented 12-month outcomes vs actual
Important
You do not need 56/56 to start. Phase 1: A+B+F(46). Phase 2: C+D+G. Phase 3: E+auto in F. The checklist is a gate, not a vanity score.
17. Improvement Roadmap¶
KEY IDEA
This roadmap is not a goal list but practical guidance on build order. V1 → V2 → V3 are not just new features — each version builds the data foundation and trust for the next. Do not try to build V3 from day one.
V1 — Foundation (0–6 months)¶
- Comprehensive telemetry coverage (metrics + logs + traces)
- Statistical anomaly detection (EWMA, Z-score)
- Basic alert correlation (deduplication, grouping)
- LLM incident summaries (no auto-remediation)
- Human-approved remediation
V2 — Automation (6–12 months)¶
- ML-based anomaly detection (Isolation Forest, LSTM)
- Topology-aware root cause analysis
- Auto-remediation for low-risk failure patterns (pod scaling, rollback)
- Feedback loop to improve models
- SLO burn rate forecasting
V3 — Intelligence (12–24 months)¶
- Agentic LLM with multi-step investigation chains
- Causal graphs for root cause analysis
- Predictive failure detection (before incidents occur)
- Chaos engineering automation (continuous remediation verification)
- Multi-region AIOps orchestration
Enterprise Scale¶
- Multi-cluster Prometheus federation
- Global Kafka mesh (MSK Replication)
- Centralized knowledge base with RAG
- Compliance and audit layer
- FinOps integration (cost-aware remediation)
Mapping Roadmap ↔ 12-Month Journey¶
| Roadmap | Months (suggested) | Leadership-visible outcome |
|---|---|---|
| V1 core | 1–6 | Fewer pages, clear MTTD, trusted signal |
| V2 core | 7–12 | Useful RCA, partial low-risk auto |
| V3 start | 12–24 | Agentic investigate + predictive |
18. Seed for the Future: Junior → Principal¶
KEY IDEA
This handbook does not only build systems — it builds engineers. A mature AIOps org needs people who understand distributed systems and evaluation and org design. These are skill “seeds” by level.
Junior SRE / Platform¶
Focus: Observe correctly, page correctly, runbook correctly.
| Skill | Concrete work | Ready for mid signal |
|---|---|---|
| Metrics & PromQL | Write burn-rate alerts | Few FPs, peer-reviewed alerts |
| Logs/traces | Debug 1 request across 3 services | Personal MTTK decreases |
| Incident hygiene | Clean timeline, label outcomes | IC trusts Sev-2 handoff |
| Toil tracking | Measure manual hours / week | Propose 1 small automation |
Avoid: Training deep learning “for prestige”; adopting vendor AI without understanding SLIs.
Mid-level / Product SRE¶
Focus: Orient + Decide — topology, correlation, risk.
| Skill | Work | Senior signal |
|---|---|---|
| SLO design | Map business → SLI | Living error budget policy |
| Correlation rules | Reduce storms via service graph | Pages/incident < 5 |
| Playbooks | Idempotent + verify | Safe low-risk auto |
| Postmortem quality | 5 whys + action owners | Fewer repeating failure classes |
| Cost awareness | Cardinality & log volume | No surprise bills |
Senior / Staff¶
Focus: AIOps system as an internal product.
| Skill | Work | Signal |
|---|---|---|
| Pipeline architecture | Latency budget, fail-open | Game day pass |
| Model evaluation | Offline + online metrics | FP budget held |
| Multi-team platform | Standards, paved path | Product SRE self-serve |
| Risk governance | Matrix + audit | Legal/security sign-off |
| Mentoring | Review juniors’ OODA | Bus factor rises |
Principal¶
Focus: Operational economics, strategy, and safe automation boundaries.
| Skill | Work | Signal |
|---|---|---|
| ROI & DORA link | Narrative CFO/CTO trust | Multi-year budget |
| Org design | RACI, AIOps hiring bar | Fewer ownership wars |
| Edge-case portfolio | Brownout, metastable, multi-region | Fewer repeating “unknown unknowns” |
| Ethical/safe autonomy | When not to auto | Zero catastrophic self-heal fails (goal) |
| Ecosystem sense | AIOps vs agentic discourse | Choose tech by problem, not hype |
90-day exercise (every level)
1) Measure baseline MTTD/MTTR/pages. 2) Pick 1 journey. 3) Improve one canvas link (usually Signal or Noise). 4) Write technical + org postmortem. 5) Present 1-page ROI.
Skills Adjacency Map¶
flowchart TB
DS[Distributed systems] --> OBS[Observability]
OBS --> SRE[SRE / SLO]
SRE --> AD[Stats & AD]
AD --> CORR[Correlation / RCA]
CORR --> AUTO[Safe automation]
LLM[LLM / agents] --> CORR
LLM --> AUTO
PROD[Product thinking] --> ROI[ROI & prioritization]
ORG[Org & RACI] --> ROI
AUTO --> ROI
Summary¶
| Concept | Key takeaway |
|---|---|
| Purpose of AIOps | Reduce MTTR, eliminate alert fatigue, close the remediation loop |
| Mental model | OODA + Signal→Noise→Decision→Action→Verify→Learn |
| AIOps vs AI SRE | Deterministic pipeline is the backbone; agents support Orient/Learn |
| Edge cases | Brownout, partial, metastable, retry storm — design early |
| Maturity | Do not skip levels. Reach Level 2 before building Level 3. |
| 12-month journey | Outcomes by month; data-quality checkpoint at month 6 |
| ROI | MTTD + MTTR + CFR (DORA); anchor to revenue/SLA, not only “fewer alerts” |
| Org | Clear Platform / Product SRE / ML eng RACI; risk owner = service owner |
| Architecture | Data first. Intelligence second. Humans always supervise. |
| Flywheel | Incident → label → retrain → better detection |
| Failure modes | Pipeline fails open. Never make AIOps the only alert path. |
| Build vs Buy | Buy infrastructure. Build the intelligence layer. |
| People | Junior→Principal: seed skills in parallel with the platform |
Chapter Score¶
| Criterion | Score | Notes |
|---|---|---|
| Technical Accuracy | 9.7/10 | Latency numbers validated in production |
| Production Readiness | 9.6/10 | Full documentation of failure modes and anti-patterns |
| Depth | 9.7/10 | Philosophy + ROI/DORA + mental models + edge cases |
| Practical Value | 9.8/10 | Maturity + 12-month journey + 50+ checklist |
| Architecture Quality | 9.7/10 | End-to-end pipeline with latency budget + OODA map |
| Observability | 9.5/10 | Pipeline observability mentioned; detail in Ch12 |
| Security | 9.5/10 | Safety gates against LLM hallucination, audit trail |
| Scalability | 9.5/10 | Notes multi-tenant gap |
| Cost Awareness | 9.8/10 | Expanded ROI MTTD/CFR + cost dashboard |
| Diagram Quality | 9.6/10 | Mermaid diagrams for all major concepts |
References & Public Reading List¶
Core references¶
- Google SRE Book — Monitoring Distributed Systems
- Gartner AIOps Market Guide 2024
- DORA State of DevOps Report
- Facebook's Canopy: End-to-End Performance Tracing and Analysis
- Microsoft's AIOps — Scaling Incident Management
Google SRE (required foundation)¶
- Site Reliability Engineering (SRE Book) — full
- The Site Reliability Workbook — Alerting on SLOs
- The Site Reliability Workbook — Eliminating Toil
- Google — Building Secure & Reliable Systems (select chapters on emergency response)
Netflix Tech Blog (resilience & operations at scale)¶
- Netflix Tech Blog — home
- Look for series: chaos engineering, ATS/edge, operational visibility, incident management — practical brownout & partial failure patterns
- Lessons for AIOps: fail open, layered defense, load shedding before “scale forever”
AWS — Partner Engineering / reliability narratives¶
- AWS Well-Architected — Reliability Pillar
- AWS Builders’ Library — timeout, retry, backoff, health checks (foundation for safe detection & remediation)
- Amazon Prime Day / large-event ops posts — capacity & observability patterns before the “ML story”
Note: “AWS PES” in community discourse often refers to Partner / Professional Services narratives and reliability guidance tied to Well-Architected + Builders’ Library; anchor on the public docs above rather than internal slides.
Uber engineering (ML platform mindset)¶
- Uber Engineering Blog
- Michelangelo — Uber’s ML Platform (overview articles) — feature/label/train/serve lessons applied to the AIOps flywheel
- Apply: evaluation, ownership model, do not ship unmonitored models
Deeper AIOps / incidents¶
- Practical AIOps — O'Reilly
- Building Microservices — Sam Newman (Observability chapters)
- Handbook chapters: 15 Big Tech · 16 E-commerce & Banking · 17 Famous Incidents
Further Reading (short)¶
- Annual DORA reports — compare CFR & time-to-restore with the AIOps roadmap
- Public postmortems (Google, Cloudflare, Slack, GitHub…) — build an “edge case library”
- Papers: AIOps RCA / log anomaly (Microsoft, academia) — read the evaluation section before the model section
Chapter 00 — end. Next: build the right signal before building intelligence — 01 Observability.