← All posts
On-call notes

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:

  1. The marketing site loads.
  2. Login works.
  3. The API returns a healthy response.
  4. The database is reachable.
  5. Background jobs are running (heartbeat).

That’s your first set of monitors. Cover those five before adding anything else.

Check types

CheckUse it forDo not use it for
HTTPPages, APIs, health endpointsDeep business logic
TCPPorts, TLS endpoints, databasesApplication correctness
DNSResolution and record changesWebsite availability
PingNetwork reachabilityAnything above L3
HeartbeatCron jobs, backups, queue workersRequest/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:

  1. Who is first? One person, not a channel.
  2. 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.
  3. What happens next? Retry the same person, then the secondary, then the manager. Cap the number of repeats so it doesn’t ring forever.
  4. When does it stop? Acknowledgment stops the escalation but leaves the alert open. Resolution closes it.
  5. 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

ApproachGoodBad
Uptime KumaFree, simple, huge communityNo real escalation/on-call
Kuma + PagerDutyIncremental, familiarIntegration to maintain, two bills, split ownership
Prometheus + AlertmanagerExtremely flexible, metrics-nativeAssembly required, not a status page
SaaS monitor + pagerTurnkey, supportPer-seat cost, data leaves your network
YipYap FOSSChecks + escalation + alerting in one binaryNo 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

  1. 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-foss

    Data lives in the yipyap-data volume. The command generates a new YIPYAP_JWT_SECRET each time you run it. A restart keeps it, but before you recreate the container (to upgrade, for example), save the value from docker inspect and pass it again, or every sign-in session and API key stops working.

  2. Create the five critical-path monitors.

  3. Add one heartbeat for your most important cron job.

  4. Create a two-step escalation: chat, then email, or a webhook to your existing pager. Cloud Pro adds SMS and voice.

  5. (Cloud only) Connect one status page and point a subdomain at it. The FOSS core stops at alerting.

  6. Trigger a test alert. Acknowledge it from your phone, then resolve it.

  7. 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

Wren

Wren is the pen name for the team that builds YipYap. The advice comes from people who have carried a pager; the name keeps the focus on the work.

← Back to all posts