Problem
Product analysts at Tutu (Hotels team) learned about missing, dropped or anomalous events days or weeks after they appeared. Usually a developer or QA noticed a "lost" event during their own work and told the analysts. The developers' alerting could be set up only for obvious event anomalies and did not compute product metrics such as GMV, revenue or DAU. The analysts wanted to investigate data anomalies themselves, with no intermediary who could miss details.
Example from the article: developers, during their regular work, see a "missing" event and come to the product analyst, who then works out the cause.
Solution in brief
A daily script compares yesterday's value with a baseline: the monthly average for events and last week's value for business metrics. It posts to a corporate messenger when the deviation exceeds a fixed percentage, with line charts attached. The thresholds are plain relative differences tuned on retrospective data, not statistical outlier rules.
Questions this case answers
- How to detect silent tracking failures and unusual metric moves quickly when the data team has no monitoring of its own and only simple rules are affordable
- How to learn about missing or anomalous product events within a day instead of weeks?
- How to set up a daily anomaly alert for event counts and business metrics without an ML model?
- How to choose alert thresholds that catch moderate deviations, not only 3-sigma outliers?
Tools and methods
- Relative-deviation alerting — flags an event or metric that moves far from its own baseline.
- ClickHouse — event table the SQL queries run against.
- pandas — holds query results and filters anomalies.
- Matplotlib — line charts of anomalous events for the last days.
- Zulip bot API — delivers text alerts and chart images to a stream.
Google or a one-time email code. No password.