Public Web Service Availability
Purpose
Use this runbook when a public web service monitored by Blackbox Exporter is unavailable or returns an unexpected HTTP response.
Check Prometheus target health
curl -sS http://localhost:9090/api/v1/targets |
jq '
.data.activeTargets[]
| select(.labels.job == "blackbox-web-services")
| {
health,
instance: .labels.instance,
lastError,
scrapeUrl
}
'
If Prometheus cannot scrape Blackbox Exporter, fix the monitoring path first.
Probe through Blackbox Exporter
docker exec observability-platform-prometheus-1 wget -qO- 'http://blackbox-exporter:9115/probe?target=https%3A%2F%2Fexample.example&module=https_2xx'
Focus on:
probe_success
probe_http_status_code
probe_duration_seconds
For HTTPS probes also inspect:
probe_ssl_earliest_cert_expiry
Interpret results
probe_success = 1
Blackbox successfully completed the configured probe.
If users still report an outage, investigate application behavior, DNS, routing, authentication, or paths not covered by the configured probe.
probe_success = 0
Inspect the complete probe output for the failure reason.
Typical categories include DNS resolution, TCP connection, TLS handshake, certificate validation, HTTP response, or timeout failures.
Unexpected HTTP status
The https_2xx module expects a successful HTTPS response.
If a service intentionally returns a non-2xx response at its public health URL, create a dedicated Blackbox module appropriate to that behavior rather than weakening the existing HTTPS probe for all services.
External verification
When appropriate, test the public endpoint from an independent network as well. A successful probe from the observability host does not prove that every client network can reach the service.
Recovery verification
After remediation:
- Confirm
probe_successreturns to1. - Confirm the HTTP status is expected.
- Confirm the Prometheus target remains
up. - Confirm any active availability alert resolves.
- Record the incident or change according to the service's operational process.