Anomaly Detection in Ops

Algorithms for catching metric deviations without static thresholds — 3-sigma and ESD on stationary series, STL / Prophet / DeepAR for seasonal forecasting, isolation forest and autoencoders for multivariate. Covers when statistical methods are sufficient, when ML is genuinely needed, and the operational pitfalls.

Overview

The problem

Anomaly detection in operations separates metric values that represent genuine problems from the natural variance of a healthy system. A static threshold (alert when CPU exceeds 80 percent) solves a simpler problem. Most production metrics are not stationary: they have daily business-hours cycles, weekly peaks, growth trends and holiday distortions.

On a seasonal metric, a static threshold fails in both directions. Set it low and it fires at every peak, which is too sensitive. Set it high and it misses anomalies in the slow periods, which is too permissive. A learned baseline follows the cycle instead, so it alerts only on genuine deviation.

Interview questions

  • Walk me through choosing an anomaly detection algorithm for a new ops use case.
  • How do you reduce alert fatigue from an anomaly detection system that fires too much?
  • Compare Datadog Watchdog, Dynatrace Davis anomaly detection, and a DIY Prophet-based detector.
  • How does anomaly detection interact with SLO-based alerting -- should you replace one with the other?
  • What are the production pitfalls of deploying anomaly detection on a Kubernetes or microservices environment at scale?

Sign up free to read the full topic

More AIOps topics

Start free on Cariara · Coding problems · System design studio