AIOps in practice: AI for incident triage, alert summaries, and root cause analysis — and the real limits
What AIOps is, how it evolved from statistical anomaly detection to LLM-assisted operations, which use cases already work, the prerequisites that matter more than the AI, and where it still gets things wrong.
AI$ kubectl rollout undo deployment/checkout▍It’s 3 a.m., the phone rings, and the screen shows 47 alerts. Half of them are consequences of the other half, and the on-call engineer has to figure out, half asleep, which one matters. That is the scenario AIOps promises to improve. Here we separate what already works, what demands care, and what you need in place before letting AI near your incidents.
What AIOps is
AIOps (Artificial Intelligence for IT Operations) is the use of artificial intelligence and machine learning techniques to support running systems: detecting problems, grouping related signals, suggesting causes, and speeding up the response. The term was popularized by Gartner in the mid-2010s, when the volume of metrics, logs, and events started to exceed what a team can read by hand.
Think of an on-call assistant who reads every dashboard at once and hands you a summary. It doesn’t decide — it sets the table so the decision comes faster.
From statistical detection to LLMs
The first generation of AIOps was essentially statistical: dynamic baselines, seasonality, standard deviation, clustering of similar events. It works well for answering “is this outside normal?” and for grouping alerts that fire together.
The current generation adds LLMs (large language models, such as Claude, GPT, Gemini, Llama, or Mistral). They are no better with time series, but they do what was missing: read and write text — summarize an incident, interpret logs, draft a timeline, and answer “what changed in checkout in the last hour?”. With standards like MCP (see what MCP is), the model can query observability tools instead of relying only on what was pasted into the chat.
Use cases: what works today
| Use case | What the AI does | Maturity | Realism |
|---|---|---|---|
| Alert correlation and noise reduction | Groups alerts by time, topology, and similarity | High | Concrete gains if metadata is good |
| Anomaly detection | Dynamic and seasonal baselines | High | Useful, but noisy without tuning |
| Incident summary for stakeholders | Translates technical signals into business language | Medium-high | Great draft; a human reviews before sending |
| Postmortem timeline draft | Orders chat events, alerts, and deploys | Medium-high | Saves hours; needs checking |
| Suggested runbook | Retrieves the runbook closest to the symptom | Medium | Depends on up-to-date runbooks |
| Root cause hypotheses | Cross-references logs, traces, and recent changes | Medium-low | A hypothesis, never a verdict |
| Natural-language queries over telemetry | Generates queries and reads results (e.g., via MCP) | Medium | Handy for exploring; validate the generated query |
For natural-language queries, an accessible path is connecting an assistant to Grafana through the official MCP server — we cover the installation in Grafana and the Grafana MCP server.
Prerequisites that matter more than the AI
No model makes up for bad data. Before investing in AIOps, check the basics:
- Quality telemetry: metrics, structured logs, and traces with consistent names.
- Correlation IDs: a
trace_idpropagated across services and present in logs. Without it, the AI “correlates” by coincidence of timestamps. See correlating metrics, logs, traces, and profiling. - Service catalog with owners: knowing who is responsible for each service and what it depends on.
- Change events: deploys, configuration changes, and feature flags recorded with timestamps. A large share of incidents start with a change.
- Symptom-based alerts: if your alerts are already noisy, the AI will just summarize noise more eloquently. Start with symptom-based alerting.
- Business context: which customer journey was affected and what it costs, as discussed in reducing MTTR with business context.
An incident from start to finish
1. The alert
The checkout latency SLO starts burning through its error budget. A symptom alert fires — and, along with it, several cause alerts in neighboring services.
2. The AI summary
The tool groups the signals and posts to the incident channel:
Automatic summary (draft — validate before acting)
- Symptom: checkout p99 rose from ~300 ms to ~2.1 s at 03:02.
- 12 alerts grouped: checkout, payments-api, and the database connection pool.
- Recent change: deploy checkout v2025.11.3 at 02:58 (4 min earlier).
- Slow traces concentrated in the SELECT call on order_items.
- Hypothesis (unconfirmed): new query without an index introduced in the deploy.
- Sources: alertmanager, traces, deploy events.
Notice two things: the text separates facts from hypotheses and cites its sources. Demand that format from any tool.
3. Human validation and rollback
The on-call engineer opens the trace, confirms the slow query, and decides to roll back — a human decision:
kubectl rollout history deployment/checkout -n shop
kubectl rollout undo deployment/checkout -n shop
kubectl rollout status deployment/checkout -n shop
Latency returns to normal within a few minutes.
4. Postmortem timeline draft
The next day, the AI reads the incident channel, the alerts, and the deploy events and proposes a timeline. The team fixes timestamps, adds the context that wasn’t written down, and runs the analysis in the blameless postmortem format. The AI does the grunt work; the learning belongs to the team.
Example: summarizing alerts with a local LLM
You can try the idea without sending data outside, using a locally served model (Ollama and vLLM expose an OpenAI-compatible API):
# export the active alerts from Alertmanager
amtool alert query --alertmanager.url=http://localhost:9093 > alerts.txt
export LLM_URL="http://localhost:11434/v1/chat/completions"
export LLM_MODEL="local-model-name"
jq -n --arg model "$LLM_MODEL" --rawfile alerts alerts.txt '{
model: $model,
temperature: 0,
messages: [
{role: "system", content: "You summarize alerts for on-call. Use only the data provided. Separate facts from hypotheses. If you do not know, say so."},
{role: "user", content: ("Group and summarize these alerts:\n" + $alerts)}
]
}' | curl -s "$LLM_URL" -H "Content-Type: application/json" -d @- \
| jq -r '.choices[0].message.content'
It’s an illustrative prototype, useful for evaluating whether the summary helps the team.
The real limits
- Confidently wrong answers: an LLM can state a plausible and false root cause. Treat every suggestion as a hypothesis to verify.
- Missing context: if someone changed the firewall without logging it, the AI doesn’t know. What isn’t in the data doesn’t exist for it.
- Data quality: inconsistent names, unstructured logs, and out-of-sync clocks produce false correlations.
- Cost: sending large volumes of logs to a model is expensive. Filter and summarize first (see FinOps for AI).
- Privacy: logs often contain personal data and secrets. Mask them first and use only tools approved by your company.
- Automated remediation: never let the AI execute high-risk actions (production rollback, failover, deleting resources) without human approval. Low-risk, reversible actions, such as collecting diagnostics, are good candidates to start with — the topic is covered in depth in AI agents in DevOps.
- Honest measurement: compare MTTA and MTTR before and after, with the same criteria and over a long enough period. Also count the cases where a wrong suggestion delayed the response.
Build vs. buy
| Criterion | AI feature in your observability platform | DIY solution (LLM + MCP) |
|---|---|---|
| Time to start | Short, already integrated with the data | Longer: integrations, prompts, evaluation |
| Control | Limited to what the vendor exposes | Full control over prompts, model, and flow |
| Data | Stays with the vendor you already use | You decide where it’s processed |
| Cost | Usually bundled in license or usage | Infrastructure, tokens, and engineering time |
| Maintenance | The vendor’s | Yours |
There’s no universal answer. If telemetry is already centralized in one platform, evaluating the native feature is usually the cheapest step; if data is scattered or privacy demands fine-grained control, a DIY solution may make sense. Either way, read the data-use terms and run a pilot with real incidents.
Checklist
- Symptom-based alerts with a defined owner
-
trace_idpropagated and present in logs - Deploy and configuration events recorded with timestamps
- AI summaries separating facts, hypotheses, and sources
- High-risk actions always require human approval
- Personal data and secrets masked before reaching the model
- MTTA and MTTR measured before and after the pilot
AI can read every dashboard in seconds, but the team still owns the incident — use it to buy time, not to outsource judgment.