Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC
open sourceApache-2.0self-hostablefree
The Blackbox exporter is the Prometheus project's prober: Prometheus asks it to probe a target (a URL, host, port, DNS server or gRPC service) with a configured module, and it returns metrics such as probe_success, timings and TLS certificate expiry for Prometheus to store and alert on. Modules check HTTP status codes, headers, body regexes and JSON (with CEL), TLS and certificate revocation, TCP query and response dialogues with STARTTLS, DNS answers, ICMP ping, gRPC health, Unix sockets and WebSockets. It follows the multi-target exporter pattern, so one exporter probes many targets chosen by relabelling in the Prometheus config. It is Apache-2.0 and part of Prometheus, a CNCF project.
Ways to install
On your own server
On Kubernetes
Package managers
Problems it solves
- alert in Prometheus when one of our websites stops returning 200
- get warned weeks before a TLS certificate on any of our endpoints expires
- measure DNS lookup, connect, TLS handshake and time to first byte for an HTTP endpoint
- check that a page still contains the expected text or that a JSON health endpoint reports healthy
- ping our routers and servers and graph packet loss and latency in Grafana
- make sure a DNS server answers a query with the records we expect
- check that SMTP, IMAP or another TCP service responds with the right banner, including STARTTLS
- probe gRPC health checks on our services from outside the process
- self-hosted uptime checks that feed into the Prometheus and Alertmanager setup we already have
- monitor external dependencies we can't install an exporter on
- probe every ingress host in a Kubernetes cluster without writing a script per URL
- check endpoints over IPv6 and IPv4 separately to catch broken dual-stack setups
Features
- HTTP and HTTPS probes with valid status codes, HTTP versions, methods, headers and request bodies
- fail on body regex, header match or JSON body CEL expressions
- TLS certificate metrics, including expiry, and optional CRL revocation checks
- basic auth, bearer tokens, OAuth 2.0 and proxy settings for HTTP probes
- HTTP/3 support
- TCP probes with query and response steps, regex or exact bytes matching, and STARTTLS
- DNS probes that check answer, authority and additional records
- ICMP ping probes over IPv4 or IPv6
- gRPC health checking probes
- Unix socket and WebSocket probes
View 4 more
- debug output for a single probe with debug=true
- configuration reload via SIGHUP, /-/reload or automatic reload
- TLS and basic authentication on its own endpoints
- Docker images on Quay, Docker Hub and GitHub Container Registry
Alternatives
The same job
These do what Blackbox exporter does.
- Gatus Automated developer-oriented status page with alerting and incident support
- Uptime Kuma A fancy self-hosted monitoring tool
- UptimeRobot Uptime monitoring for websites, APIs, cron jobs, ports, DNS and SSL, with status pages
- Checkly The active reliability layer for developers & agents
- Checkmate An open source uptime and infrastructure monitoring application
