Video in progress
All the internal metrics are green, but users write that the site won't open. What is missing from the monitoring?
There is only inside (white-box) monitoring and no outside (black-box) monitoring. The service measures the requests that reach it, but requests that fail in DNS, the certificate, the CDN, the ingress or the network never reach it at all. You need synthetic probes and real-user monitoring.
📖 Answer
An application metric only sees the requests that reached the application. If the certificate has expired, a DNS record was changed wrongly, or a load balancer health check has pulled all the backends because of a bug, the application just sees less traffic, and the error ratio stays at 0%. A green dashboard.
The solution comes in layers:
Synthetic monitoring: a probe from outside (from several regions) that walks the real user path every minute: home page, login, add to cart. A simple option is Prometheus blackbox_exporter:
modules:
https_2xx:
prober: http
timeout: 5s
http:
valid_status_codes: [200]
fail_if_body_not_matches_regexp: ["Savat"] # did the page really open correctly
From here you get probe_success and probe_ssl_earliest_cert_expiry; an alert on the second one 14 days ahead is a must.
Traffic anomaly: an alert like "the request count dropped 50% compared to the same hour last week" catches many problems even without black-box checks.
RUM (real user monitoring): real load times and JS errors from the browser or the mobile app. A synthetic test checks one "ideal" path, while RUM shows the picture on real devices and networks.
Measure the SLI as close to the outer edge as you can too, from load balancer or CDN logs.
Sign up to mark studied questions and save your progress.