Self-host Uptime Kuma: Dead Simple Uptime Monitoring
Monitor all your self-hosted services with Uptime Kuma. Setup takes 5 minutes, looks beautiful, and sends alerts when things break.
Self-host Uptime Kuma: Dead Simple Uptime Monitoring
The 3am Wake-Up Call I Didn’t Get
Three months ago, my Nextcloud instance went down at 2am. I didn’t know until 9am when I tried to check my files. By then, it had been dead for 7 hours.
The problem? I had no idea my services were even down. I was running a bunch of self-hosted apps—Nextcloud, Vaultwarden, Immich, my blog—and just hoping nothing broke. Spoiler: things break. A lot.
I needed uptime monitoring. Something simple that would ping my services every few minutes and scream at me (via Discord, ideally) when something died.
Enter Uptime Kuma.
It’s a self-hosted uptime monitoring tool that looks stunning, takes 5 minutes to set up, and has saved my ass more times than I can count. If you’re running any self-hosted services and not monitoring them, you’re playing Russian roulette with your uptime.
Let me show you how to set it up.
Why Uptime Kuma?
I tried a bunch of monitoring solutions before landing on Uptime Kuma:
UptimeRobot (cloud service) — Works great, but the free tier only checks every 5 minutes and limits you to 50 monitors. Plus, why trust a third-party when I can self-host?
Prometheus + Grafana (what I covered in my other article) — Powerful for metrics, but overkill if you just want “is my service up or down?”
Uptime Kuma — Perfect middle ground. Self-hosted, beautiful UI, unlimited monitors, multi-protocol support (HTTP, TCP, DNS, Docker, etc.), and notifications to literally everything (Discord, Telegram, email, Slack, Ntfy, Pushover…).
The killer feature? Status pages. You can create a public status page (like status.yoursite.com) so your users know when something’s broken. I use this for my blog and API services.
What You’ll Need
Before we start:
- A server: Minimum 512MB RAM (seriously, Uptime Kuma is lightweight). A cheap VPS from Hetzner (€4.15/month) or DigitalOcean ($6/month) works perfectly.
- Docker installed: If you don’t have it yet, run:
(Log out and back in after this.)curl -fsSL https://get.docker.com | sh sudo usermod -aG docker $USER - A domain (optional but recommended): For HTTPS and a clean status page.
Note: I run Uptime Kuma on a 1GB RAM VPS alongside 5 other services. It uses ~80MB RAM and barely touches the CPU. It’s ridiculously efficient.
Installing Uptime Kuma with Docker
Let’s get Uptime Kuma running. SSH into your server and create a directory:
mkdir -p ~/uptime-kuma && cd ~/uptime-kuma
Create a docker-compose.yml:
nano docker-compose.yml
Paste this:
version: '3.8'
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./data:/app/data
ports:
- "3001:3001"
restart: unless-stopped
That’s it. Seriously. No environment variables, no complex config, just one service and a volume.
Start it:
docker compose up -d
Check if it’s running:
docker ps
You should see uptime-kuma with status Up.
Now visit http://your-vps-ip:3001 in your browser. You’ll see the Uptime Kuma setup screen.
First-time setup:
- Create an admin account (username + password)
- That’s it. You’re in.
Pro tip: Don’t leave port 3001 exposed to the internet long-term. Set up a reverse proxy (Nginx Proxy Manager or Traefik) with HTTPS. I’ll cover that in a bit.
Setting Up Your First Monitor
Once you’re logged in, click Add New Monitor.
Here’s an example: monitoring your blog.
Settings:
- Monitor Type: HTTP(s)
- Friendly Name: My Blog
- URL:
https://yourblog.com - Heartbeat Interval: 60 seconds
- Retries: 2
- Accepted Status Codes:
200-299
Click Save.
Uptime Kuma will now ping your blog every 60 seconds. If it gets anything other than a 200-299 status code (or if the request times out), it’ll mark the service as down.
You can see the history in a beautiful graph on the dashboard. Green = up, red = down.
Monitoring Different Types of Services
Uptime Kuma supports way more than just HTTP checks. Here are the monitor types I use:
HTTP(s) Monitoring
Perfect for websites, APIs, and web apps.
Example: Monitoring Nextcloud
- URL:
https://nextcloud.yourdomain.com/status.php - Expected Response: Contains
"installed":true
That endpoint returns JSON. If Nextcloud is dead, the response won’t match, and you’ll get alerted.
TCP Port Monitoring
Checks if a specific port is open.
Example: Monitoring SSH
- Hostname:
your-vps-ip - Port:
22
If SSH dies, you’ll know immediately.
Ping (ICMP)
Simple ping to check if a server is reachable.
Example: Monitoring your home server
- Hostname:
192.168.1.100 - Interval: 60 seconds
Docker Container Monitoring
Checks if a specific Docker container is running.
Example: Monitoring your Vaultwarden container
- Container Name:
vaultwarden - Docker Host:
/var/run/docker.sock(if Uptime Kuma is on the same machine)
This is super useful if you have a bunch of Docker containers and want to monitor them locally.
DNS Monitoring
Checks if a domain resolves correctly.
Example: Monitoring your domain
- Hostname:
yourdomain.com - Record Type:
A - Expected Value:
your-vps-ip
I use this to make sure my DNS records aren’t screwed up.
Push Monitoring
For services that can’t be pinged directly (e.g., cron jobs, scheduled tasks).
Uptime Kuma gives you a unique push URL. Your script hits that URL when it runs successfully. If Uptime Kuma doesn’t receive a push within the expected interval, it alerts you.
Example: Daily backup script
#!/bin/bash
# Run backup
tar -czf backup.tar.gz /data
# Notify Uptime Kuma
curl https://uptime-kuma.yourdomain.com/api/push/abc123
If your backup fails or doesn’t run, you’ll get alerted.
Setting Up Notifications
Monitoring is useless if you don’t get alerted when things break. Uptime Kuma has 40+ notification integrations. Here are the ones I use:
Discord Webhook
My favorite. I have a private Discord server with an #alerts channel.
- Go to Settings → Notifications in Uptime Kuma
- Click Setup Notification
- Select Discord
- Name it (e.g., “Discord Alerts”)
- Paste your Discord webhook URL
To get a webhook URL:
- Open Discord
- Go to your server → right-click a channel → Edit Channel
- Go to Integrations → Webhooks → New Webhook
- Copy the webhook URL
Now when a service goes down, I get a Discord ping instantly. It looks like this:
đź”´ My Blog is DOWN
URL: https://myblog.com
Status: Connection Timeout
When it comes back up:
🟢 My Blog is UP
URL: https://myblog.com
Downtime: 3 minutes
Telegram
If you prefer Telegram:
- Create a bot with @BotFather
- Get your chat ID by messaging @userinfobot
- Enter bot token and chat ID in Uptime Kuma
Works, but slower than push notifications. I use this as a backup.
- Select Email (SMTP)
- Enter your SMTP details (e.g., Gmail, Mailgun, your own mail server)
- Test it
Ntfy
If you use Ntfy (self-hosted push notifications):
- Select Ntfy
- Enter your Ntfy server URL and topic
- Done
I use Ntfy for critical alerts because it works even if Discord is down.
Slack, Pushover, Gotify, Matrix…
Uptime Kuma supports them all. Pick what works for you.
Pro tip: Set up multiple notification channels for critical services. I have Discord + Ntfy for my most important monitors. If Discord is down, I still get alerted via Ntfy.
Creating a Public Status Page
This is where Uptime Kuma shines. You can create a public status page (like status.yourdomain.com) so your users can see if your services are up or down.
Here’s how:
- Go to Status Pages (left sidebar)
- Click Add New Status Page
- Give it a name and a slug (e.g.,
status) - Select which monitors to display
- Customize the theme (light/dark)
- Click Save
Now visit http://your-vps-ip:3001/status/status (or whatever slug you chose).
You’ll see a clean public page showing the uptime of all your services. No login required.
Making it accessible:
If you have a domain, set up a subdomain (e.g., status.yourdomain.com) and point it to your server. Then use a reverse proxy (Nginx Proxy Manager or Traefik) to route status.yourdomain.com to Uptime Kuma.
I have status.selfhostable.dev set up like this. My users can check if the site is down (ironically, if the site is down, they can’t check… but at least they know I care).
Setting Up a Reverse Proxy (HTTPS)
Running Uptime Kuma on port 3001 with HTTP is fine for testing, but you’ll want HTTPS for security.
Here’s the quick version using Nginx Proxy Manager (NPM):
- Install NPM (check my other article for a full guide)
- Add a new proxy host in NPM:
- Domain Names:
uptime.yourdomain.com - Scheme:
http - Forward Hostname / IP:
uptime-kuma(if NPM and Uptime Kuma are in the same Docker network) orlocalhost - Forward Port:
3001
- Domain Names:
- Enable SSL with Let’s Encrypt
Now visit https://uptime.yourdomain.com. Secure and clean.
If you’re using Traefik, add labels to your docker-compose.yml:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./data:/app/data
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.uptime-kuma.rule=Host(`uptime.yourdomain.com`)"
- "traefik.http.routers.uptime-kuma.entrypoints=websecure"
- "traefik.http.routers.uptime-kuma.tls.certresolver=letsencrypt"
- "traefik.http.services.uptime-kuma.loadbalancer.server.port=3001"
restart: unless-stopped
networks:
traefik:
external: true
Restart the stack and you’re done.
What I Monitor (Real Examples)
Here’s my actual Uptime Kuma setup:
- My blog (HTTP, every 60s) — If my site’s down, I want to know immediately.
- Nextcloud (HTTP, checking
/status.php) — Ensures the backend is actually responding. - Vaultwarden (HTTP, every 60s) — My password manager. If it’s down, I’m locked out.
- SSH on my VPS (TCP port 22, every 60s) — If SSH dies, I can’t fix anything remotely.
- PostgreSQL (TCP port 5432, every 120s) — My database. If it’s down, everything else breaks.
- Daily backup script (Push monitor) — If my backup doesn’t run, I get alerted at 3am. Better than discovering weeks later.
- Traefik dashboard (HTTP with keyword check) — Ensures my reverse proxy is healthy.
- DNS for my domain (DNS monitor) — Makes sure my domain resolves correctly.
Total: 8 monitors. All free. All self-hosted.
What I Learned the Hard Way
1. Set “Retries” to at least 2
I initially had retries set to 0. Big mistake. Every time my ISP had a tiny hiccup, I’d get a false alarm. Now I set retries to 2, meaning Uptime Kuma checks twice before marking a service as down.
2. Don’t monitor everything every 30 seconds
I was paranoid and set everything to 30-second intervals. My notifications blew up. Turns out, 60 seconds is plenty for most services. For critical stuff (like my payment API), I use 30 seconds. For everything else, 60-120 seconds is fine.
3. Use keyword checks for API endpoints
Instead of just checking if a URL returns 200, add a keyword check. For example, my Nextcloud monitor looks for "installed":true in the response. This way, if Nextcloud is broken but still returns 200, I’ll know.
4. Push monitors are amazing for cron jobs
I used to have cron jobs that would silently fail. Now every critical cron job (backups, database cleanups, etc.) pings an Uptime Kuma push monitor. If the job doesn’t run, I get alerted.
5. Test your notifications
Set up your notification channels and click Test immediately. I once thought I had Discord alerts set up, but the webhook was wrong. I only found out when a service went down and I got radio silence.
6. Status pages are great for transparency
I added a public status page for my blog and API. Now when something breaks, I can just link people to status.selfhostable.dev instead of answering DMs. It’s also a nice touch for credibility.
Advanced Tips
Group Monitors by Service
Uptime Kuma lets you create tags. I use:
Critical(red tag) — Services that must be up 24/7Non-critical(yellow tag) — Nice to have, but not urgentInternal(blue tag) — Only accessible from my local network
This makes the dashboard way easier to scan.
Maintenance Windows
If you’re doing server maintenance, you can pause monitors temporarily. This prevents false alerts while you’re intentionally restarting services.
Export/Import Config
Uptime Kuma lets you export your entire config as JSON. I do this monthly and save it to my backup drive. If I ever need to rebuild Uptime Kuma from scratch, I can import everything in seconds.
API Access
Uptime Kuma has an API. You can programmatically add monitors, check statuses, and more. I use this to auto-add new services when I spin up Docker containers.
Documentation: https://github.com/louislam/uptime-kuma/wiki/API
Multi-user Access
If you’re running services for a team, you can create additional users. Each user can have read-only or admin access. I gave my co-admin read-only access so they can check the dashboard without breaking anything.
Uptime Kuma vs Other Monitoring Tools
People always ask: “Should I use Uptime Kuma or Prometheus/Grafana?”
The answer: Use both.
- Uptime Kuma is for “Is my service up or down?”
- Prometheus/Grafana is for “Why did my service crash? What’s eating my CPU?”
They complement each other. Uptime Kuma tells you when something breaks. Prometheus tells you why.
I run both. Uptime Kuma for uptime checks, Prometheus for deep metrics. Together, they give me full visibility.
If I had to pick just one? Uptime Kuma. It’s way easier to set up and covers 80% of what you need.
Common Issues and Fixes
Problem: Uptime Kuma says a service is down, but it’s not
Fix: Check your DNS, firewall rules, and retry settings. Sometimes a slow network makes Uptime Kuma think a service is down. Increase the timeout or retries.
Problem: Notifications aren’t working
Fix: Go to Settings → Notifications → Test. If the test works but real alerts don’t, check your monitor’s notification settings. You might have forgotten to assign the notification channel to that specific monitor.
Problem: Docker container monitor not working
Fix: Make sure Uptime Kuma has access to /var/run/docker.sock. Add this to your docker-compose.yml:
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
Problem: Uptime Kuma is slow or laggy
Fix: You might have too many monitors or the database is bloated. Uptime Kuma uses SQLite by default. If you have 100+ monitors, consider reducing the history retention (Settings → Database Size).
Problem: Status page is showing the wrong timezone
Fix: Set your timezone in Docker:
environment:
- TZ=Europe/Paris
Integrating with Other Tools
Uptime Kuma plays nice with other self-hosted tools:
Ntfy
Self-hosted push notifications. I use this as a backup notification method.
Home Assistant
You can trigger automations based on Uptime Kuma alerts. Example: flash a smart light red when a service goes down.
Grafana
Uptime Kuma doesn’t export Prometheus metrics natively, but you can use the API to fetch data and visualize it in Grafana.
Healthchecks.io
If you’re already using Healthchecks for cron monitoring, you can migrate to Uptime Kuma’s push monitors. Same concept, but self-hosted.
Is This Overkill for a Homelab?
Depends on what you’re running.
If you’re just tinkering: Probably overkill. But it’s still fun to have a dashboard.
If you’re running production services (blog, business site, API, etc.): Absolutely not overkill. You need monitoring.
I went from “hoping nothing breaks” to “knowing immediately when something breaks.” That peace of mind is worth the 5 minutes of setup.
Next Steps
You now have Uptime Kuma running. Here’s what to do next:
- Add monitors for all your critical services
- Set up at least 2 notification channels (Discord + email, or Telegram + Ntfy)
- Create a status page and share it (optional but cool)
- Test your alerts — Intentionally break a service and make sure you get notified
- Set up a reverse proxy with HTTPS if you haven’t already
If you want to go deeper, check out:
- Self-host Your Monitoring Stack: Grafana + Prometheus — For deep metrics
- Nginx Proxy Manager Reverse Proxy — For HTTPS setup
- Secure Your VPS: Essential Hardening Guide — Because monitoring a hacked server is pointless
FAQ
Q: Can I run Uptime Kuma on a Raspberry Pi?
Yes. It’s super lightweight. A Raspberry Pi 3 or 4 handles it easily. Just make sure you’re using an ARM-compatible image (the official image supports ARM).
Q: How much disk space does it need?
The Docker image is ~150MB. The database grows over time depending on how many monitors you have and how long you keep history. I have 8 monitors running for 6 months and the database is only 50MB.
Q: Can I monitor services on different servers?
Absolutely. As long as Uptime Kuma can reach the service (via HTTP, TCP, ping, etc.), it works. I monitor services across 3 different VPS instances from one Uptime Kuma instance.
Q: What if Uptime Kuma itself goes down?
Meta problem, I know. You have two options:
- Monitor Uptime Kuma from an external service (like UptimeRobot’s free tier)
- Run Uptime Kuma on a separate, stable server
I use option 1. UptimeRobot pings my Uptime Kuma instance every 5 minutes. If it’s down, I get an email.
Q: Can I use this for production SaaS monitoring?
For small-scale SaaS, yes. For enterprise, you’ll want something more robust (PagerDuty, Datadog, etc.). But for indie hackers and small teams? Uptime Kuma is plenty.
Q: Does it support SSL certificate expiration alerts?
Yes! When you set up an HTTPS monitor, you can enable SSL certificate expiration alerts. I get notified 7 days before any of my certs expire.
Q: Can I self-host the status page on my own domain?
Yes. The status page is just a public URL within Uptime Kuma. Point a subdomain (e.g., status.yourdomain.com) to your Uptime Kuma instance and use a reverse proxy.
Q: What’s the difference between Uptime Kuma and Uptime Robot?
UptimeRobot is a cloud service (SaaS). Uptime Kuma is self-hosted. UptimeRobot’s free tier is limited (50 monitors, 5-minute intervals). Uptime Kuma is unlimited and free forever.
Final Thoughts
A few months ago, I had no idea when my services were down. Now I have a dashboard, alerts, and a public status page. It took 30 minutes to set up (including the reverse proxy) and has saved me hours of downtime.
If you’re running self-hosted services and not monitoring them, you’re playing a dangerous game. Uptime Kuma is free, open-source, and ridiculously easy to use. There’s no excuse not to set it up.
Go do it. Your future self (and your users) will thank you.
Related Articles:
- Self-host Your Monitoring Stack: Grafana + Prometheus
- Best VPS Providers for Self-Hosting 2026
- Docker Compose for Beginners: Self-Hosting Made Easy
- Nginx Proxy Manager: The Easy Reverse Proxy
Written from my homelab, monitoring 8 services on a €4/month Hetzner VPS. Zero unplanned downtime in 3 months.
Stay in the loop 📬
Get self-hosting tutorials, tool reviews, and infrastructure tips delivered to your inbox. No spam, unsubscribe anytime.
Join 0 self-hosters. Free forever.