Find out before your customers do — the monitoring pipeline and time-to-detect
A monitoring system turns 'what is our software doing right now?' into numbers measured on a fixed schedule, kept in one place and checked by rules on a fixed schedule, so a machine rather than a customer is first to notice checkout is broken.
Scene 01
Find out before your customers do
- Watch
- Try it
- Predict
- Capture
What does it take to find out your site is broken before your customers tell you? At 02:14 Shopfront's checkout servers start answering requests with errors. Every failed request is written to a log, and nobody is counting anything. Watch how long it takes before anyone notices. Then the same night replays, this time with the servers counting their errors every 15 s and a rule checking that count every 15 s (an example setup). Watch which lane lights first, and the time-to-detect readout that appears top-right.
Highlighted lines are the ones running in the diagram right now.
def handle_checkout(request):result = checkout(request)if result.failed:log.write(request, result.error)checkout_errors += 1return result
every 15 s: # measure interval (example)value = checkout_errorscheckout_errors = 0store.append("checkout_errors", now(), value)
def watch_dashboard():while person.at_screen():screen.draw(store.series("checkout_errors"))if person.glances() and screen.shows_spike():person.page(on_call)
every 15 s: # check interval (example)latest = store.last("checkout_errors")if latest > limit:pager.page(on_call, "checkout is failing")
Where this sits in Metrics / Monitoring System
Scene 01 of 18, in the Why measure act — Numbers beat complaints; labels, not traffic, set the bill.. Monitoring means numbers measured on a schedule and checked by rules on a schedule, so a machine — not a customer — is first to notice checkout is broken.
Up next. Now that a machine checks numbers on a schedule, the next question is what keeping those numbers costs, and what makes them expensive.
All 18 scenes in Metrics / Monitoring System · Every curriculum