Problem
Large incidents at Uber are caught within a day. Small issues that hit one city, one bank or one error type stay undetected for days and add up to lost revenue. Millions of metric slices cannot be checked by hand, a model tuned for one series fails on series with different seasonality, and a naive detector floods people with alerts they cannot act on.
Example from the article: a payment success-rate monitor covers several million combinations of payment attributes. A drop can hit a whole country or a single bank in a small city, and the system has to catch both.
Solution in brief
uVitals builds a multi-dimensional metric cube and runs every slice through a seasonality detector. Seasonal series go to STL or Prophet, the rest to simple statistical models. A rules engine turns model signals into ranked anomalies. Feedback and a city-tier filter remove noise, and Spark handles the volume.
Questions this case answers
- How to detect rare, small anomalies across millions of metric slices without hand-tuning a model for each series
- How to keep alert noise low when most flagged deviations come from low-volume segments and are not actionable
- How to detect small anomalies in millions of metric slices that no incident process catches?
- How to choose a detection model per time series when some slices are seasonal and some are not?
Tools and methods
- Metric cube — every valid combination of dimensions as its own series.
- Seasonality detector (ACF, FFT) — decides if a slice is seasonal.
- STL (statsmodels) — seasonal-trend decomposition, the default for seasonal slices.
- Prophet — alternative seasonal model; sometimes invents seasonality.
- IQR, standard deviation, moving averages, two proportion test — models for non-seasonal slices.
- City classifier — tiers cities by traffic so low-volume noise can be filtered.
- Apache Spark — replaced pandas for 3 million series.
Google or a one-time email code. No password.