Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Synthetic Monitoring and Probes

Direct 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.

When to use this

Use it to detect outages users would see, including when no traffic flows.

First 30 seconds

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.

Operational verification

probe location → request → check result → metric → alert

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
Scope / prerequisiteUse it to detect outages users would see, including when no traffic flows.
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Key points

Probe from multiple locations. Check content and status, not just TCP. Monitor certificate expiry. Alert on failures from several locations to avoid false positives.

Key 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
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

ProbeChecks
HTTP(S)Status code, response time, content, certificate expiry
TCPPort reachable
ICMPReachability and latency
DNSResolution 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

LocationDetects
Inside the cluster/networkApplication and internal dependencies
Another region or cloudRouting, DNS, CDN, firewall, certificate problems users see
Several external locationsRegional 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Terminology layer

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.

Aliases that resolve here
synthetic monitoring and probessynthetic monitoringblackbox exporter probe
Confirmation

Confirm action

Continue?