Pcornel
Observability · Infrastructure Observability

Synthetic Monitoring and Probes

Cheat sheet · https://pcornel.dk/topic.php?topic=6232

Back to the Topic

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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

Confirmation

Confirm action

Continue?