Uptime Kuma is the self-hosted answer to “we just need a synthetic check on the outside of the cloud, and a status page our customers can subscribe to.” It runs as a single Node.js process in a single container, talks to dozens of notification providers out of the box, and includes a public status page that does not need a separate SaaS bill. This article walks through a small, reasonable Kuma deployment — Docker container with a persistent volume, the monitor types to choose for different signals, a notification chain that survives a real outage, and a status page wired to a custom domain.
How to verify
Once up, all of the below should be green.
docker ps --filter name=uptime-kuma --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'
curl -fsS http://127.0.0.1:3001/api/status-page/list -H "Authorization: Bearer $TOKEN" | jq
docker exec uptime-kuma sqlite3 /app/data/kuma.db '.tables' 2>/dev/null | head
curl -sI https://status.example.com/ | head -5
# A single monitor's recent results
curl -fsS http://127.0.0.1:3001/metrics | grep '^monitor_status' | head -10
The /metrics endpoint (Prometheus format) exposes every monitor’s status, response time, and certificate expiry — pair it with Prometheus so you can alert on Kuma itself going down.
What’s happening
Uptime Kuma probes endpoints on a schedule, records each probe’s result in a small SQLite database, fans the result out to any configured notifications when a monitor changes state, and renders both an admin dashboard and an optional public status page. The probe is run from the Kuma host, which makes it a synthetic external check — useful for confirming that “the user-facing URL still resolves and responds,” distinct from the internal health checks Prometheus does.
Monitor types matter. HTTP(s) is the workhorse — pick “Status code 2xx-3xx” plus an optional body match for endpoints that always return 200 with an error in the body. TCP is what you use for services without HTTP (SMTP, SSH, Postgres on a private network). DNS verifies a record resolves to the value you expect. Ping (ICMP) needs the container to run with --cap-add=NET_RAW. Keyword is HTTP plus a substring match — the cleanest way to detect “the homepage rendered but the React bundle did not load.”
The procedure
-
Run the container with a persistent volume. The SQLite database lives in
/app/datainside the container.docker volume create uptime-kuma docker run -d --name uptime-kuma --restart=unless-stopped \ -p 127.0.0.1:3001:3001 \ -v uptime-kuma:/app/data \ --cap-add=NET_RAW \ louislam/uptime-kuma:1Pin the major version (
:1) notlatest— 2.x is in beta as of writing and not all the integrations are stable. -
Front it with Nginx + TLS. Kuma uses WebSockets for the live dashboard, so the proxy needs the upgrade headers.
server { listen 443 ssl http2; server_name uptime.example.com; ssl_certificate /etc/letsencrypt/live/uptime.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/uptime.example.com/privkey.pem; location / { proxy_pass http://127.0.0.1:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_read_timeout 3600; } } -
Set the admin user on first load. The first page after install asks for an admin username and password — store both in a password manager and turn on 2FA from the user menu immediately afterwards.
-
Add monitors of the right type. Three patterns we use everywhere:
- Public-facing homepage — HTTP(s), 60s interval, “Status Code 2xx-3xx,” “Body keyword” set to a string you control (
<title>Acme</title>). The keyword catches white-page incidents where the server still returns 200. - API health endpoint — HTTP(s), 30s interval, hitting
https://api.example.com/healthwith an expected JSON body. Use the “JSON Query” type if you want to alert on a specific field, not just status code. - Mail relay — SMTP, 5m interval, with auth credentials. Catches the case where the MX is up but auth is broken (expired creds, IP not in allowlist).
- Certificate expiry — built into every HTTP(s) monitor. Set the cert expiry notification to 21 days; that gives the renewal pipeline a real grace window.
- Public-facing homepage — HTTP(s), 60s interval, “Status Code 2xx-3xx,” “Body keyword” set to a string you control (
-
Wire notifications with redundancy. A single Slack channel as the only path is a single point of failure (Slack outage, channel archived). Configure at least two channels: a primary (Slack/Discord/Teams) and an email or SMS fallback. In each monitor’s Notifications tab, attach both.
-
Publish a status page. Settings → Status Pages → New. Give it a slug (
acme), attach the monitors you want public, pick groups (Web, API, Mail), set a custom domain (status.example.comwith its own TLS cert), and turn on “Subscribe via email/RSS” if you want customers to subscribe to incident updates. The page is served at the slug or the custom domain — both work in parallel. -
Scrape Kuma into Prometheus. Two reasons: alert when Kuma itself is down (Prometheus pings the metrics endpoint), and feed the synthetic data into Grafana alongside everything else.
- job_name: 'uptime-kuma' metrics_path: '/metrics' bearer_token: '<api-key-from-Kuma-settings>' static_configs: - targets: ['uptime.internal:3001']
Common pitfalls
- Hosting Kuma on the same infrastructure it monitors; an outage that takes the host down also takes the monitoring down — host it elsewhere or run a second Kuma somewhere else.
- A monitor with a 5-minute interval and a 30-second timeout on a slow endpoint produces flapping alerts; tune timeout to the realistic worst-case response time.
- The default backup is the SQLite file in
/app/data— without a periodic copy to elsewhere, a container delete loses every monitor and every notification config. - “Notify resolved” off by default on email channels; on-call sees the down notification but never the recovery and assumes the incident continues.
- A custom domain on the status page without its own TLS cert; the page loads but the subscribe form is blocked by the browser.
For the deeper Kuma deployment we use in customer engagements — Postgres backend, multi-instance — see uptime-kuma-deploy.
Stack Harbor hosts Kuma on out-of-band infrastructure as part of the managed operations tier — separate from the cloud being monitored, with notifications fanned to both a Slack channel and an SMS gateway so a single notification provider outage does not blind the on-call.