Path from Creating a Basic Monitoring System to an Automation and Decision-Making System

Pavel Stepuro9 Jul 2024

Problem

Teams that run online services around the clock need availability of at least 99.99%. Without monitoring, engineers learn about failures from customers. With growing dashboards, nobody can watch every metric in time, and typical actions still eat minutes of each incident. The article describes a six-level path from no monitoring to a system that makes decisions itself, independent of the tech stack.

Example from the article: At the prediction level, Sber's forecasts reached a 15-minute lead time and 80%+ accuracy, so 4 of 5 alerts pointed to a real degradation.

Solution in brief

Move up one level at a time. Start with metrics and dashboards, then add alerts with severity and rich notifications, then automation of routine incident steps, then ML forecasts of metrics, then automatic corrective actions. Levels 1 to 3 need no ML and can be applied at once; the forecasting level needs long metric history.

Questions this case answers
  • How to move an operational monitoring setup from passive dashboards to automated detection, response and forecasting when alerts overwhelm the people on duty
  • How to forecast metric deviations early enough for a human to intervene, while staff distrust a model that is sometimes wrong
  • How to grow a monitoring system from dashboards to automatic incident handling?
  • How to predict service degradation early enough for an administrator to act before customers notice?

Tools and methods

  • Dashboard with colour indication — first view of metrics, with thresholds and drill-down
  • Alerting by severity (low, medium, high) — event console, SMS and work-chat notifications
  • Metric codebook — one identifier per metric, shared by alerts and instructions
  • Incident automation — automatic ticket, conference call, log collection and diagnostic email
  • Metric forecasting with ML/AI models — early warning of deviations
  • Automatic corrective actions — API calls and control signals
Continue reading — it's free

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