Skip to content
Timi Adewumirev 2026.09
monitoring, kubernetes

Black-box checks: why a service's own metrics stay green while it is down

An application cannot report the failure that stops traffic reaching it. A separate prober can. What a black-box check must record, and what it should not try to be.

Contents

The most embarrassing outage I know of has one shape. The dashboard is green. Error rate: zero. Latency: flat and low. Then a customer writes in. The service was unreachable for an hour, and nothing fired, because no request arrived to be counted as an error.

An application's own metrics describe the requests it received. They cannot describe the requests it never received. A broken ingress rule, an expired certificate, a DNS record that points at the old load balancer, a security group change: each one stops traffic before the service sees it, and each one leaves the service's metrics perfectly healthy.

The fix is a second observer#

The check that catches this has to live outside the service and call it the way a client would: resolve the name, open the connection, complete the TLS handshake, send a request, and read the response. This is black-box monitoring. The prober knows only what an outside client knows, which is exactly the point.

blackbox_exporter from the Prometheus project does this well. Gatus, Uptime Kuma, and Kuberhealthy do it with a UI or a Kubernetes-native model. I am building my own to learn the shape of the problem, and these are the rules I have taken from the existing tools.

Record the handshake, not only the status code#

A probe that records "200 or not" misses the failure that is coming next week. Every successful HTTPS probe should also record:

  • Certificate expiry. The not-after date of the leaf certificate. Alert at 14 days and at 7. A renewal that silently stopped working is the most common certificate incident, and it is visible for weeks before it bites.
  • Which stage failed. DNS resolution, TCP connect, TLS handshake, first byte, full body. "Down" is useless; "TLS handshake failed" sends you to the right place.
  • Latency per stage. A slow DNS resolver and a slow application look the same in total time.

Probe from where your users are#

A probe from inside the cluster tests the Service. A probe from outside tests the ingress, the load balancer, DNS, and the certificate chain the public sees. They are different checks and you need both. The inside probe tells you the application broke; the outside probe tells you the customer cannot reach it.

NOTE

In Kubernetes, the natural way to declare an outside check is a custom resource next to the Deployment it watches, so the team that owns the service owns its check. That is what the operator part of probewatch is for.

What a black-box check should not try to be#

It is tempting to make the prober smart: parse the response, check business logic, chain requests. Resist it. The value of a black-box check is that it is simple enough to trust when everything else is in doubt. One request, one expected status, one body substring at most. If you need more, that is a synthetic test, and it belongs in a different tool with a different alerting policy.

Keep the prober stateless and keep it boring. It is the last thing you want to debug during an incident.