Synthetic Monitoring and Probes
Cheat sheet · https://pcornel.dk/topic.php?topic=6232
Answer
Synthetic monitoring actively tests services from outside with probes — HTTP, TCP, ICMP, DNS, TLS expiry, scripted user journeys — e.g. blackbox_exporter or browser checks.
Remember
Probe from multiple locations. Check content and status, not just TCP. Monitor certificate expiry. Alert on failures from several locations to avoid false positives.
First checks
curl -s 'localhost:9115/probe?target=https://example.com&module=http_2xx' | grep probe_success— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
probe location → request → check result → metric → alert
Where it usually breaks
A probe that only checks the port misses broken applications.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6232