Design a monitoring service that periodically checks HTTP(S) URLs for uptime, latency, TLS validity, and status codes. Users configure checks, schedules, and alert channels. Store history for SLA reporting and incident timelines.
Functional requirements
- CRUD monitored URLs with interval and timeout settings
- Execute checks from distributed probes with configurable regions
- Record results (status, TTFB, cert expiry) in time series
- Alert on consecutive failures or SLO breach via webhook/email
Non-functional requirements
- Scheduler accuracy and no duplicate thundering herds per URL
- Scalable probe workers with jittered schedules
- Retention policy for raw checks vs rollups