Use it to detect outages users would see, including when no traffic flows.
Synthetic Monitoring and Probes
1. Probe: curl -s 'localhost:9115/probe?target=https://example.com&module=http_2xx' | grep probe_success.
2. Multiple locations.
3. Cert expiry: probe_ssl_earliest_cert_expiry - time() < 14*86400.
4. DNS and TCP probes.
5. Alert on multi-location failure.
probe location → request → check result → metric → alert
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
Confirm probes fail when the service is stopped in a test. Alert only when several locations fail to avoid local network noise.
Step 2 Common failures Narrow the fault
A probe that only checks the port misses broken applications. Probing from inside the same network hides external DNS or firewall problems. Short timeouts create false alarms.
Probe from multiple locations. Check content and status, not just TCP. Monitor certificate expiry. Alert on failures from several locations to avoid false positives.
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
ReferenceWhat it is1 section · depth on demand
How it works
The blackbox exporter performs the probe when Prometheus scrapes it, with the target passed as a parameter. Modules define protocol, expected status codes and timeouts.
ReferenceImportant terms & boundaries3 sections · depth on demand
Probe types
| Probe | Checks |
|---|---|
| HTTP(S) | Status code, response time, content, certificate expiry |
| TCP | Port reachable |
| ICMP | Reachability and latency |
| DNS | Resolution and answer |
| Browser (scripted) | Login and key user journeys |
Run from several locations, outside your own network as well. Tools: blackbox_exporter (probe_success, probe_ssl_earliest_cert_expiry), Grafana Synthetic Monitoring, Uptime Kuma, Checkly.
In depth
Modules define what "working" means
modules:
http_2xx_login:
prober: http
timeout: 5s
http:
method: GET
valid_status_codes: [200]
fail_if_body_not_matches_regexp: ["Sign in"]
fail_if_not_ssl: true
preferred_ip_protocol: ip4
tcp_tls_ldaps:
prober: tcp
tcp: { tls: true }
dns_soa:
prober: dns
dns: { query_name: example.com, query_type: SOA }
icmp:
prober: icmp
Checking the body for expected content catches the "200 OK with an error page" case that a status check misses.
Metrics to alert on
probe_success == 0 # failed
probe_duration_seconds > 2 # slow
(probe_ssl_earliest_cert_expiry - time()) / 86400 < 21 # certificate expires within 21 days
probe_http_status_code >= 500
probe_http_duration_seconds{phase=…} splits time into resolve, connect, tls, processing and transfer, which tells you whether slowness is DNS, network, TLS or the application.
Where to probe from
| Location | Detects |
|---|---|
| Inside the cluster/network | Application and internal dependencies |
| Another region or cloud | Routing, DNS, CDN, firewall, certificate problems users see |
| Several external locations | Regional outages; avoids paging on one probe location's network problem |
Alert when probes from two or more locations fail at the same time, and alert separately when a probe location itself stops reporting.
Synthetic transactions
For multi-step journeys (log in, add to basket, pay with a test card) use browser-based or scripted checks (k6, Playwright, Grafana Synthetic Monitoring). Mark synthetic traffic with a header or test account so it is excluded from business metrics but included in availability SLIs where that makes sense.
Common mistakes
- Synthetic checks from inside the same failure domain only.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.