Self-monitoring incident response lab

Overview

CPU
--%
of one core
Memory (RSS)
--MB
learning baseline

A mini SRE lab in FastAPI: it detects its own CPU and memory anomalies, writes incident reports, and restores from snapshots.

Everything on this page is live data from this server's own process. This is a shared instance, so everyone visiting sees the same readings, incidents and faults.

Break it yourself

How it works

live
  1. 1Sample psutil reads CPU and memory every 2 s
  2. 2Detect baseline check, then an Isolation Forest, 2 samples in a row
  3. 3Report built-in template (no AI key set)
  4. 4Recover release the memory or roll back to a snapshot

Each step lights up as the server works through it, for the guided demo and for any fault you inject.

Guided demo

About 40 s, runs on the server

Ready
  1. Check that the server is healthy
  2. Leak 60 MB of memory
  3. Watchdog detects the leak
  4. Incident report is written
  5. Release the leaked memory
  6. Incident resolves
  7. Corrupt the database
  8. Roll back to the newest snapshot

Same caps and cooldowns as the Chaos Lab. If another visitor's fault is in the way, it waits and says why.

Uptime -- since the last restart
Open incidents -- --
Time to detect -- median, fault to incident
Time to recover -- median, incident to resolved

CPU

% of one core, last 2 minutes

--

Memory (RSS)

MB, last 2 minutes

--
  • CPU
  • Memory
  • Learned baseline
  • Alert line (baseline + 15 points or 30 MB)
  • Flagged sample
  • Incident open
  • Synthetic warm-up

Status, last 30 minutes

Loading…

  • Healthy
  • Flagged, no incident
  • Incident open
  • Synthetic warm-up
  • No data

Hover a bar, or focus the strip and use the arrow keys, for details. Click a red bar, or press Enter on it, to open its incident.

Latest incident report

Recent incidents

All incidents

Telemetry watchdog

Connecting…

Waiting for the first status update.

Baseline
--
CPU alert above
--
Memory alert above
--
server_eventsshared by every visitor
  1. Waiting for events…