InterviewLegend

Design a Metrics and Alerting System

Signature problem
Alex Chen50 min readAdded 1,382 real interview reports

A metrics and alerting system collects numbers from every service and host, keeps them as time series, draws them on dashboards and pages a person when one crosses a line. Request rate, error rate and p99 latency (how long the slowest 1% of requests take) are the usual examples. The engineer on call gets a phone call at 3 a.m. because a rule said "error rate above 2% for five minutes" and it was true. Microsoft asks this under a few names. "Design an alert monitoring system" shows up in SDE II loops, including one on a Windows team. "Design a distributed monitoring system" and "design a distributed metrics aggregator which can be used by multiple services" are the same system seen from the ingestion side. It also comes up in the LLD round (low-level design, where you write classes and code) as "design an alert system". The design below covers the whole pipeline, from the counter inside a service to the phone that rings.

The Microsoft angle
Microsoft builds its own monitoring stack (Azure Monitor, Application Insights, Kusto), so your interviewer may use it daily. Design the generic system and name one where it fits. Expect pushback where fleet scale bites: write volume, tag cardinality, thousands of rules firing in one outage, and the monitoring itself going down.

MicrosoftPremium lesson · System design round

The Microsoft design, worked end to end.

  1. The API and data modelSystem design · Signature problem
  2. The design, drawn out2 diagrams
  3. 6 deep divesWith the tradeoffs
Get the Microsoft questions

$49 a year · all 107 companies · instant access

1,382 Microsoft interview reports · guide updated

Microsoft interview guide

Know what Microsoft asks before you walk in.

21 coding · 9 system design · 24 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Microsoft interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.