Skip to main content
This cookbook shows the complete flow of a real incident on the ChatCLI AIOps platform β€” from automatic detection to the post-mortem with lessons learned.

Anatomy of an Incident

Scenario: OOMKill in Production

1. Automatic Detection

The Watcher detects that payment-service pods are being OOMKilled:

2. Issue Created

The CorrelationEngine groups the anomalies into an Issue:

3. Notification Sent

Slack automatically receives: > High Severity: OOM Kill Detected > > | Severity | Resource | Namespace | State | > |----------|----------|-----------|-------| > | high | payment-service | production | Analyzing | > > Issue: INC-20260319-001 | 2026-03-19T15:20:00Z

4. AI Analyzes the Problem

5. Approval Required

The ApprovalPolicy requires approval for resource changes in production:
Option A β€” Approve via Web Dashboard: Go to http://localhost:8090 -> Approvals -> Approve with reason. Option B β€” Approve via REST API:
Option C β€” Approve via kubectl:

6. Remediation Executed

After approval, the RemediationReconciler executes:
The controller does:
  1. Captures structured ResourceSnapshot (replicas, images, CPU/memory requests+limits, HPA min/max)
  2. Creates ActionCheckpoint before each action
  3. Applies AdjustResources (memory 512Mi -> 1Gi)
  4. Waits 90s verifying deployment health
  5. readyReplicas >= desired -> Completed
Automatic protection: If the action fails (e.g., invalid memory_limit), the operator automatically restores the resource to the snapshot state (replicas, images, resources). The plan transitions to RolledBack instead of Failed. If the verification expires (90s without health), the rollback is also executed. The postFailureHealthy field confirms whether the resource returned to normal. This ensures that a remediation never leaves the cluster in a worse state.

7. Issue Resolved

  • Slack receives resolution notification
  • Pattern Store records: β€œoom_kill + Deployment + high -> AdjustResources works”
  • 10min dedup cooldown activated (configurable via aiops.resolutionCooldownMinutes)

8. Automatic PostMortem

9. Review and Close

Day-to-Day Operations

Monitor via CLI

Monitor via API

Custom Runbooks

Important Metrics

Configure alerts in Prometheus/Grafana for these metrics. The pre-configured dashboards in deploy/grafana/ already include panels for all of them.