blackbox-exporter

by QuenchWorks

Helm chartv0.0.12App 0.28.0Apache-2.0Verified publisher

Prometheus Blackbox Exporter: probes endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC and exposes the results for scraping. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest.

About this chart

Quenchworks Blackbox Exporter

Hardened Prometheus Blackbox Exporter on a minimal, nonroot, CVE-gated image built from source, cosign-signed and pinned by digest. It probes endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC and exposes the result as Prometheus metrics for scraping.

Install

helm install blackbox-exporter oci://ghcr.io/quenchworks/charts/blackbox-exporter

The chart is bootable with no configuration: when config.yaml is empty the container uses the blackbox.yml the image ships, which defines a single http_2xx module.

Probing

The exporter does not probe on a schedule. Prometheus calls /probe with the real target in a query parameter:

kubectl port-forward svc/blackbox-exporter 9115:9115
curl 'http://127.0.0.1:9115/probe?target=https://example.com&module=http_2xx'

The response is Prometheus text; probe_success 1 means the probe passed. /metrics exposes the exporter's own metrics (not probe results), and /-/healthy answers 200 once the configuration has parsed.

A Prometheus scrape config uses the standard relabel pattern: scrape this Service, carry the target through __param_target, and rewrite __address__ back to the exporter.

Configuration

KeyDefaultDescription
image.repository / image.digestpinnedImage, always pinned by digest.
replicaCount1The exporter is stateless, so it scales horizontally.
containerPort9115Port the exporter listens on.
config.yaml""Full modules document. Empty means the image's built-in http_2xx module.
config.existingConfigMap""Use an externally-managed ConfigMap (key blackbox.yml) instead.
extraArgs[]Extra flags appended to the command.
service.type / service.portClusterIP / 9115Service exposure.
service.httpsPort443Service port for the TLS listener (container 8443) when tls.enabled.
tls.enabledfalseServe HTTPS on the exporter's own listener (--web.config.file); the certificate is mounted at /tls.
tls.existingSecret""Use this kubernetes.io/tls Secret (1st choice).
tls.certManager.enabledfalseRequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice).
tls.selfSigned.validityDays365Otherwise Helm generates a CA + certificate, kept across upgrades.
autoscaling.*disabledOptional HPA on CPU.
ingress.*disabledOptional Ingress. With tls.enabled it routes to 443: set the controller's backend protocol to HTTPS.
networkPolicy.*enabled, external allowedPrometheus often scrapes from another namespace.
podDisruptionBudget.*enabled, minAvailable: 1

Standard quench-common knobs (nodeSelector, affinity, tolerations, extraEnvVars, extraVolumes, sidecars, probe overrides, security contexts) are supported as in every Quenchworks chart.

Defining config.yaml REPLACES the built-in configuration rather than merging with it, so include an http_2xx module yourself if you still want one.

Security

Runs as uid 1001 with a read-only root filesystem and all capabilities dropped. ICMP probing needs CAP_NET_RAW, which this chart does not grant by default; add it through containerSecurityContext if you need prober: icmp.

Deploy blackbox-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has blackbox-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartblackbox-exporter is pinned at v0.0.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply