Skip to the page

Monitoring real users · mid

SLOs and alerts for a frontend

A frontend SLO measures what users feel: checkout success, pages without fatal errors, and good Web Vitals. Alerts page on user symptoms with burn rates, and everything else goes to dashboards.

The notes

What you must know

  • Page on what users feel, not on causes: checkout success rate (orders divided by attempts), payment-start failure rate, JS error rate on checkout routes, API errors and timeouts seen by the client, and a synthetic payment path failing from two locations.
  • Dashboard or ticket only: Web Vitals (LCP, INP, CLS at p75), bundle size, slow but working APIs and errors in one browser affecting a small share.
  • An SLI is a measured share of good events; an SLO is the target over a window (28 or 30 days); the error budget is what is left (99.5% means 0.5% bad events allowed).
  • Frontend SLIs: share of page loads with no fatal JS error, share of checkout attempts that succeed (seen from the client), share of views with LCP under 2.5 s and INP under 200 ms, and availability from synthetic checks.
  • Burn rates (SRE Workbook), for a 99.9% SLO: page at 14.4x over 1 hour (5-minute short window) and 6x over 6 hours (30-minute short window); ticket at 1x over 3 days. Choose targets from the baseline; each extra nine costs more.
  • Low traffic: ratios with a minimum number of events, longer windows, synthetic checks at night. Sale days: ratios or the same hour last week, never fixed counts, and an alert review before the sale.
  • Every alert has an owner, a runbook, a dashboard link and a first action (roll back, flag off, switch payment provider). Test alerts with fire drills and failure tests in staging.
  • Noisy alerts: export a month, count per rule how often it fired, whether anyone acted and whether it matched an incident. Precision is the share of alerts that mattered; recall is the share of incidents the alerts caught. Delete rules nobody acted on in 30 days, cause alerts (CPU, single errors) and duplicates, and group alerts by incident.

The red pen

Common traps: mistake → fix

  • Mistake: Alert on every JS error

    Fix: alert on the rate of user-impacting errors and burn rate.

  • Mistake: A fixed error count works on all days

    Fix: traffic changes a lot; use ratios.

  • Mistake: Web Vitals regressions should wake someone at night

    Fix: they are tickets, not pages.

Easy to hard

Questions interviewers ask, easy to hard

  1. What would you alert on for a checkout page?
  2. Define an SLO and an error budget for a frontend.
  3. We have too many noisy alerts. What do you do?
  4. How do you handle alerts for low-traffic pages or a sale day?
  5. What are precision and recall for alerts?

Practise

Practise with these questions

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview