When Metrics Go Crazy: Automatic Anomaly Detection in Time Series in Yandex Monium

Andrey Sokolov19 May 2026

Problem

Yandex runs thousands of microservices that produce millions of time series in the Monium metrics and logs system. Fixed-threshold alerts fail for many of them, because normal values depend on the day of the week, the time of day and the season, and nobody can tune that many thresholds by hand. A detector that fires on every odd point fails too: on-call engineers stop trusting it and mute it.

Example from the article: In Yandex Taxi, 46 key regions (picked by GMV and daily trips) got alerts on four metrics each: assigned, created, found_share and seen_timeout.

Solution in brief

The team benchmarked detectors on six public labeled datasets. Simple autoregression beat the heavy models. They stabilized it so that anomalies do not corrupt later predictions. For strongly seasonal series they used MEDIFF with local variance. Alerts fire on the share of anomalous points in a time window, not on single points.

Questions this case answers
  • How to monitor thousands of seasonal time series with automatic alerts when per-series thresholds cannot be set by hand and each series must be processed independently
  • How to benchmark time-series anomaly detectors fairly when anomalies are windows rather than points and the alert threshold is chosen later by the user
  • How to alert on thousands of metrics when fixed thresholds do not work because of seasonality?
  • How to choose an anomaly detector without defaulting to heavy deep-learning models?

Tools and methods

  • Autoregression (autoreg_stable) — forecast from previous values, stabilized against anomalies
  • MEDIFF — detector for strongly seasonal series, with local variance
  • F1-best, AUC-PR, Revised Point Adjusted — threshold-free, window-aware benchmark metrics
  • Anomaly window alert rule — alert on the share of anomalous points in the last N minutes
Continue reading — it's free

Google or a one-time email code. No password.