How we adapted our business alerts to make them more relevant avoiding false alerts

Gauthier FRANCOIS9 Dec 2022

Problem

Doctolib's applications are used mostly by practitioners during office hours. To check that features work, the team built service-level indicators (SLIs) on business events, for the booking system the appointments taken per minute by user type. A Datadog monitor compared the last 10 minutes with the 10 minutes before and fired on a sudden drop. At night, on weekends and on public holidays traffic is sporadic, so the monitor fired when nothing was broken. Most alerts were false, yet the goal was alerts the whole organization trusts.

Example from the article: in the quarterly chart for 2020, the false alert share rose from 72% in Q1 to 86% in Q4.

Solution in brief

Keep the feature monitor simple and add small "helper" monitors that answer context questions: is traffic representative, is it a weekend, a public holiday, or outside business hours. A Datadog composite monitor fires only when the feature monitor is red and every helper is green. The team accepted imperfect but trusted alerts over perfect detection.

Questions this case answers
  • How to reduce false alarms from a drop-detection monitor on an event-count metric when traffic is sporadic and the usual baselines (previous window, same weekday) are unreliable
  • How to encode business context such as off-hours, weekends and holidays into alert rules without a dedicated anomaly-detection product
  • How to stop a drop-detection alert on a business metric from firing at night, on weekends and on public holidays?
  • How to cut false alerts when traffic is sporadic and a week-over-week or 10-minute comparison does not work?

Tools and methods

  • Datadog composite monitor — in Datadog, combines monitor statuses with &&, || and !, and carries the context-aware alerting.
  • Helper monitors — metric monitors that are red when the context says "do not alert" (low traffic, weekend, holiday, night).
  • holidays (Ruby gem) — source of the 1 or 0 public-holiday flag pushed as a metric.
Continue reading — it's free

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