Status pages and health checks worth trusting
Published 2026-11-06
A green dot can lie
The most common health check is a process that answers a ping. It tells you the server is running, which is not the same as the application working. A login page that returns success while the database is unreachable is still down for users. A health signal is trustworthy only if it exercises the thing that matters.
Probe like a user
Check each service over HTTPS from outside the host, the way a visitor reaches it, and record the status code and the response time. Add a lightweight health endpoint that verifies critical dependencies, such as a quick database query, but keep it cheap and unauthenticated so monitors can call it often.
Distinguish a slow response from a failed one. Track response time over a window, since a service at five seconds is practically broken even if it technically answers.
Measure the host too
Load, memory, disk space and uptime explain many outages before they happen. A small host that runs out of memory kills containers at random; a full disk breaks logging and databases. Surfacing these numbers next to the service probes shortens diagnosis.
What to show publicly
A public status page builds trust when it is honest: real measurements, refreshed regularly, with down shown as down. Show service names and states, response times and recent history. Do not expose internal hostnames, versions, error details or anything that helps an attacker map the infrastructure.
Keep the page cheap to serve. Render the last stored snapshot into the page and refresh it at a calm interval, instead of running every probe on every visit.
Alerts need an owner
Dashboards are for looking; alerts are for acting. Send notifications to a channel somebody actually reads, set thresholds to avoid flapping, and write down for each alert what to check first. An alert nobody can act on trains people to ignore the next one.
Designing a useful health endpoint
A good health check answers the question a user cares about: can this service do its job right now. That means touching the database with a trivial query, checking that required storage is writable, and confirming a critical dependency is reachable, while staying fast and cheap enough to be called every few seconds. Keep a separate, shallow check for the load balancer, which only needs to know the process is alive.
Avoiding false alarms
- Require several consecutive failures before alerting, so a single slow response does not wake anyone.
- Probe from more than one place when you can, to tell a local network problem from a real outage.
- Set timeouts deliberately; a check that waits forever hides the very problem it exists to find.
- Record response times as well as up or down, because slow is often the first sign of trouble.
Using the data
Measurements are most valuable when they are kept. Uptime and response-time history show whether a change made things better, support honest statements to users after an incident, and make capacity decisions concrete. Even a simple chart of the last month turns arguments into facts.