Skip to content

Blackbox Exporter

The Blackbox Exporter enables HTTP/HTTPS probing of external endpoints and services to monitor uptime and availability.

packages:
- name: core
repository: oci://ghcr.io/defenseunicorns/packages/uds/core
ref: x.x.x-upstream
optionalComponents:
- prometheus-blackbox-exporter

For testing and debugging, you can manually probe endpoints:

Terminal window
# Port forward to access Blackbox Exporter
kubectl port-forward -n monitoring svc/blackbox-exporter 9115:9115
# Probe an HTTP endpoint
curl "http://localhost:9115/probe?target=https://example.com&module=http_2xx"
# Check current configuration
curl http://localhost:9115/config

The Blackbox Exporter provides metrics for:

  • Probe success/failure rates
  • Response times
  • SSL certificate expiration
  • HTTP status codes

The default http_2xx module handles basic HTTP probing:

http_2xx:
prober: http
timeout: 5s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
method: GET
follow_redirects: true