Self-hosted uptime monitoring that pages someone
A practical guide to self-hosted uptime monitoring: what to check, how often, how to escalate, and how to keep the alerts useful.
Installing a self-hosted monitor takes a few minutes. Making it useful takes longer. A default install checks one URL and posts to one channel, and that channel is easy to mute and forget. This guide covers what to check, how often to check it, who gets paged, and how to keep the alerts worth reading.
Start with the critical path
Begin with the five things that would break the product for a customer:
- The marketing site loads.
- Login works.
- The API returns a healthy response.
- The database is reachable.
- Background jobs are running (heartbeat).
That’s your first set of monitors. Cover those five before adding anything else.
Check types
| Check | Use it for | Do not use it for |
|---|---|---|
| HTTP | Pages, APIs, health endpoints | Deep business logic |
| TCP | Ports, TLS endpoints, databases | Application correctness |
| DNS | Resolution and record changes | Website availability |
| Ping | Network reachability | Anything above L3 |
| Heartbeat | Cron jobs, backups, queue workers | Request/response services |
Heartbeats catch failures that the other check types miss. If a nightly backup stops running, no HTTP check will fail. If the backup’s cron job hasn’t pinged in 36 hours, someone should be paged.
Health endpoints
A /health endpoint that returns 200 while the database is down is lying to
you. A useful health endpoint checks its dependencies with a short timeout and
returns 503 when they aren’t usable. Keep it cheap. If a health check times out
under load, it can cause the outage it was supposed to detect.
Check intervals
- 30–60 seconds for customer-facing endpoints and payment paths.
- 2–5 minutes for internal tools and dashboards.
- 5–15 minutes for DNS and low-risk infrastructure.
- Heartbeat windows at 1.5–2× the job’s expected interval.
Shorter intervals have costs. A 10-second check against a flaky third party will page you every night. Base the interval on the recovery time you’ve promised, not on the smallest number the vendor allows.
Escalation
When a check fails, something has to happen. If it only writes a row to the database, the monitor is recording history, not alerting anyone. Write the policy down and answer these questions:
- Who is first? One person, not a channel.
- How long do they have? 5 minutes is typical. 15 is too long for a customer outage, and 2 is too short for a person to respond.
- What happens next? Retry the same person, then the secondary, then the manager. Cap the number of repeats so it doesn’t ring forever.
- When does it stop? Acknowledgment stops the escalation but leaves the alert open. Resolution closes it.
- What about overnight? Voice call or SMS for the first responder. Chat is for business hours. On FOSS, send a webhook to a pager that can call.
A simple policy that works:
0 min Slack + email to primary
5 min SMS to primary
10 min Voice call to primary
15 min SMS + voice to secondary
25 min Voice to manager
Stop after 3 loops or on acknowledgment
SMS and voice need a Cloud Pro or Enterprise plan. The FOSS core sends chat, email, and webhooks, so build the policy around the channels you run.
Test the policy every quarter. Until it has been tested, you don’t know whether it pages anyone.
Reducing alert noise
Alert fatigue usually comes down to configuration. Asking people to pay closer attention won’t fix it.
- Group related monitors so one database outage doesn’t send fourteen pages.
- Use maintenance windows for deploys and planned work. Put them in the calendar instead of relying on someone to remember.
- Alert on consecutive failures, not a single blip.
- Match on the response body, not just the status code, when the app returns 200 with an error payload.
- Delete monitors nobody owns. If nobody can say what to do when it fires, it shouldn’t page anyone.
- Review the last 30 days each month. Which alert fired most? Fix the cause or the threshold. Which never fired? Decide whether it’s still worth keeping.
Status pages
Customers shouldn’t learn about an outage from a support ticket. A status page should:
- update automatically from the same monitors,
- show active maintenance windows,
- keep an accurate history of how long incidents lasted,
- and stay reachable when the main app isn’t.
Host it on separate infrastructure from the service it reports on.
YipYap Cloud includes status pages on Pro and Enterprise. The FOSS edition doesn’t, so if you self-host the core, either keep your existing vendor or use a static page you update by hand.
Security and operations checklist
- Put the monitor behind auth. Don’t expose the admin UI to the internet without TLS and a strong secret.
- Encrypt notification credentials at rest. A Slack token in a SQLite file is still a credential.
- Back up the database and test the restore.
- Keep the checker independent of what it checks: logically at minimum, and ideally on a different network.
- Monitor the monitor. A checker that dies while still showing “all green” is worse than no checker, because people trust it. Use a second instance or an external dead-man’s switch.
- Pin the container image and have a rollback path.
The options
| Approach | Good | Bad |
|---|---|---|
| Uptime Kuma | Free, simple, huge community | No real escalation/on-call |
| Kuma + PagerDuty | Incremental, familiar | Integration to maintain, two bills, split ownership |
| Prometheus + Alertmanager | Extremely flexible, metrics-native | Assembly required, not a status page |
| SaaS monitor + pager | Turnkey, support | Per-seat cost, data leaves your network |
| YipYap FOSS | Checks + escalation + alerting in one binary | No self-hosted on-call, status pages, or SMS/voice |
Self-hosting buys control and costs operational work. A SaaS monitor and pager takes the work off your plate and sends a bill.
A 30-minute setup
-
Install the FOSS edition:
docker run -p 8080:8080 \ -e YIPYAP_JWT_SECRET=$(openssl rand -hex 32) \ -v yipyap-data:/data \ -e YIPYAP_DB_DSN=/data/yipyap.db \ ghcr.io/yipyap-run/yipyap-fossData lives in the
yipyap-datavolume. The command generates a newYIPYAP_JWT_SECRETeach time you run it. A restart keeps it, but before you recreate the container (to upgrade, for example), save the value fromdocker inspectand pass it again, or every sign-in session and API key stops working. -
Create the five critical-path monitors.
-
Add one heartbeat for your most important cron job.
-
Create a two-step escalation: chat, then email, or a webhook to your existing pager. Cloud Pro adds SMS and voice.
-
(Cloud only) Connect one status page and point a subdomain at it. The FOSS core stops at alerting.
-
Trigger a test alert. Acknowledge it from your phone, then resolve it.
-
Write down who gets called and when. Cloud can enforce the rotation for you.
If step 6 fails, fix that before you do anything else.
Wren