Open Source
All templates and components

Cluster component

Prometheus Blackbox Exporter

Checks that your sites and ports answer, and alerts when they don't.

Memory when idle
about 10 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 and ARM servers
Installed by default
Optional on one machine, recommended on several

Introduction

Prometheus Blackbox Exporter checks from inside the cluster whether a site or a port answers. It ships two modules. http_2xx expects a 2xx answer after redirects and tries IPv6 first, then IPv4. tcp_connect opens a TCP connection. Both give up after 5 seconds.

Install it when you want uptime checks and alerts for your own targets. It needs VictoriaMetrics, which stores the results. On several nodes it runs two replicas, so one failing replica does not mean the target is down. It has no Kubernetes API access and makes only outbound probes.

Use it

Blackbox Exporter has no Zeabur OSS screen. Tell the metrics agent what to probe with a VMProbe. This example checks a site every minute:

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMProbe
metadata:
  name: example-site
  namespace: observability
spec:
  jobName: example-site
  interval: 60s
  module: http_2xx
  vmProberSpec:
    url: blackbox-exporter-prometheus-blackbox-exporter.observability.svc:9115
  targets:
    static:
      targets:
        - https://example.com

The metric probe_success is 1 while the target answers. To alert on it, write a VMRule. See the VMProbe and VMRule pages.

Remove it

Removal deletes the exporter. Your VMProbe objects stay, and their probes fail until you delete them. Results already stored stay until VictoriaMetrics’ retention removes them. See Remove components.

Troubleshooting

A probe always fails

Run the same probe by hand with debug output:

kubectl -n observability port-forward svc/blackbox-exporter-prometheus-blackbox-exporter 9115:9115
curl 'localhost:9115/probe?module=http_2xx&target=https://example.com&debug=true'

The output shows each step, such as DNS, the connection and the redirects.

Technical details

This release

Provides
uptime-probes
Licence
Apache-2.0
Homepage
github.com

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
k3slinux/amd64v1.37.24 MiB
k3slinux/arm64v1.37.24 MiB
kindlinux/amd64v1.37.04 MiB
kindlinux/arm64v1.37.04 MiB
kubesololinux/amd64v1.36.64 MiB
kubesololinux/arm64v1.36.64 MiB
rke2linux/amd64v1.37.24 MiB
rke2linux/arm64v1.37.24 MiB

Security

Has no API access and only makes outbound probes.

What it installs

  • blackbox-exporter 11.20.2