aiops / AIOps anomaly detection
The anomaly that was not an incident
A learned latency baseline reports an extreme anomaly even though the service is healthy. Investigate the telemetry pipeline and restore a meaningful alert.
aiops-01-telemetry-unit-drift.tar.gzRead lab README
The false anomaly
A latency detector flags a supposedly extreme incident, but the source measurement is normal. Trace the synthetic telemetry from source to detector and restore meaningful detection.
The detector fits a simple linear regression to a small synthetic history and compares positive latency residuals with a threshold based on training residuals. This is an illustrative statistical AIOps exercise, not a production monitoring system or a generative AI model.
Before you begin
Use a disposable local environment with Bash, Python 3, Docker and Docker Compose. The first run may download a Python image. It uses no cloud account, real telemetry or external AI service, and publishes no host ports. Local Docker uses compute, disk and network bandwidth; a cloud-hosted Docker machine may incur charges.
The lab creates Compose project breakfix-aiops-01 and mounts this directory read-only in the container. Do not reuse the project name. Changes to the configuration remain on the host after teardown; re-extract the archive to reset the exercise.
Start the incident
Run ./setup.sh. It starts the detector and confirms the synthetic observation produces an alert. Inspect the event with docker compose -p breakfix-aiops-01 exec detector python /lab/client.py, then compare the reported observation with the source event and ingestion configuration.
Verify and clean up
After correcting the telemetry pipeline, run ./verify.sh. It checks that the original event is no longer a false alert, the historical baseline is unchanged, and an elevated latency still triggers an alert. Run ./teardown.sh to remove the lab container and network. Setup refuses to reuse an existing project, and teardown refuses containers belonging to a different directory.
