AIOps Observer
← All labs

AIOps anomaly detection / Intermediate / 25–35 min

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.

LAB IDaiops-01-telemetry-unit-driftTRACK / aiops.observer
Analyst monitoring system signals beside AI server hardware

The scenario

A local anomaly detector learns the relationship between request traffic and latency from synthetic historical measurements. Its newest observation produces a severe alert despite a normal synthetic service measurement. Trace the data through the pipeline without changing the historical baseline or suppressing genuine anomalies.

Mission objectives

  • Reproduce the false anomaly and inspect the source telemetry.
  • Identify the mismatch between the source measurement and ingestion configuration.
  • Restore correct analysis while retaining detection of a genuinely elevated latency.

Watch the explanation

A synthetic latency measurement triggers a false anomaly after an ingestion configuration misinterprets its units.

Watch the video ↗

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.

View Markdown source ↗

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/aiops-01-telemetry-unit-drift.sh
less aiops-01-telemetry-unit-drift.sh
bash aiops-01-telemetry-unit-drift.sh
cd labs/aiops-01-telemetry-unit-drift
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Compare the source event with the detector's normalized observation, including their units.

Hint #2

Inspect the ingestion configuration before changing the baseline or alert logic.

Hint #3 · Learning paths on opsbreakfix.com

Explore learning paths ↗

Solved it?

Continue learning with the paths on opsbreakfix.com.

Continue to opsbreakfix.com ↗

One ecosystem.
Many perspectives.

Follow the connection from a hands-on lab to the knowledge and tools behind it.