Skip to content
VDS · Apps and bots

Your own monitoring: Uptime Kuma

How to set up availability checks for your websites and services with notifications in Telegram or Discord and configure it so it only wakes you when it matters.

Updated August 23, 2026

Your machine's control panel shows CPU, traffic and memory graphs, but it has no idea whether your site responds or whether the database is alive. For that you need your own watcher. Uptime Kuma is the simplest option: one container, a web interface, dozens of notification methods.

Installation

services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    container_name: uptime-kuma
    restart: unless-stopped
    volumes:
      - ./data:/app/data
    ports:
      - "127.0.0.1:3001:3001"
docker compose up -d

The port is bound to the local interface on purpose: the monitoring panel shouldn't be exposed to the outside. Open it either through a web server with a certificate and password, or through an SSH tunnel:

ssh -L 3001:127.0.0.1:3001 root@<machine-address>

Then go to http://localhost:3001 in your browser; the first user becomes the administrator.

What to monitor

Start small, or you'll drown in noise:

  • HTTP check of each site's home page — response code and time.
  • HTTP check of a key API with a keyword check in the response. A page can return 200 and still show an error.
  • TCP port of the database or game server.
  • Certificate expiry — Kuma will warn you N days before it expires.
  • Push check for scheduled tasks: after a successful run the script hits a unique address, and if it doesn't, you get an alert. Pairs well with scheduled tasks.

A 60-second interval is enough almost always. Retries — 2-3, otherwise a single lost network packet will raise a false alarm.

Don't put site monitoring on the same machine where that site lives. If the machine goes down, the watcher goes down with it, and you'll never know. For external sites, keep Kuma on a separate machine, and on this one — only checks of internal services.

Notifications

Set up a Telegram bot or a Discord webhook and add it in the notifications section. Don't use the email channel: the machine's outbound connections to ports 25, 465 and 587 are closed until they're opened on request, and emails from Kuma simply won't go out — see Mail server.

Useful habits:

  • Separate channels for "down" and "certificate expiring". The first needs a reaction right now, the second — within the week.
  • Recovery notifications enabled. Without them you can't tell whether the outage is over.
  • A test message sent during setup. Half of all problems are a wrong token, and you only find that out during a real outage.

Resources and maintenance

The container fits in 150-250 MB of memory and runs comfortably on VDS-1. The database grows with check history: set retention to 90-180 days in the settings, otherwise in a year the file will grow to gigabytes — see disk space.

The ./data directory holds the entire state of the service. Include it in your backup: restoring three dozen checks by hand is no fun.

Common mistakes

  • Checking by IP address instead of domain. The certificate and virtual host aren't checked, and a DNS outage goes unnoticed.
  • Thresholds that are too sensitive. An alert on every 2-second overrun means people stop reading the notifications.
  • Panel exposed to the outside without a password. It shows your entire infrastructure: addresses, ports, service names.