An online shop in Al Khor found out its site had been down for six hours from a customer’s message on a Friday morning. The cause was simple: the disk had filled with logs overnight, the database stopped writing, and every page showed an error. Nothing about it was hard to detect. The disk had been filling for days, and a single check every minute would have caught the outage within two. This guide explains the two kinds of monitoring every site needs, how to set up Uptime Kuma to check your site and alert you, how to give customers a status page, how to collect server metrics with Prometheus and node_exporter and see them in Grafana, which alert thresholds are worth setting, and, the part most people get wrong, where the monitor itself should run.
01Two kinds of monitoring
looks at your service from the outside, the way a visitor does: it opens the page every minute or so and checks that it answers, quickly, with the content it should. When it fails, you get an alert. Metrics monitoring looks from the inside: it records CPU, memory, disk, network and application numbers every few seconds and keeps the history, so you see trends and causes, not only symptoms.
| Uptime monitoring | Metrics monitoring | |
|---|---|---|
| Question it answers | Is the site working for visitors right now? | Why is it slow, and what will break next? |
| How | Requests from outside: HTTP, TCP, DNS, ping | An agent on the server exports numbers that are collected and stored |
| Typical tools | Uptime Kuma | Prometheus, node_exporter, Grafana |
| Alerts on | Down, slow, wrong content, certificate expiring | Disk filling, memory low, CPU saturated |
| Blind spot | Cannot see a problem coming | Can look healthy while visitors see an error |
The Al Khor shop needed both: metrics would have warned that the disk was filling days earlier, and an uptime check would have caught the outage in minutes. Start with uptime, because it is quicker to set up and catches what customers notice; add metrics once that is working.
02Where to run the monitor
The most common mistake is to install the monitor on the same server it watches. When that server goes down, so does the monitor, and it sends nothing exactly when you need it. The same goes for a full disk or a server out of memory: the monitor suffers with everything else.
- A separate server: A small VPS with 1 GB of memory is enough for Uptime Kuma, and for Prometheus and Grafana watching a handful of servers. It can watch all your other servers at once.
- A different location if you can: A monitor in the same data centre will not see a problem in the network path between that data centre and your visitors. A light second check from another place, even a small device at your office, covers that gap.
- Watch the watcher: Have something check the monitor too: a Push monitor on a second instance, or simply a daily message the monitor sends, whose absence you would notice.
- Check your provider’s status: When an alert fires, your hosting provider’s status page tells you whether it is a known incident. Illevante’s services publish theirs at status.illevante.com.
03Set up Uptime Kuma
Uptime Kuma is an open-source, self-hosted monitoring tool under the MIT licence, with a clean web interface. It checks HTTP(S) pages, keywords and JSON responses, TCP ports, ping, DNS records, Docker containers and more, as often as every 20 seconds, and sends alerts through more than 90 notification services. The easiest way to run it is Docker, on the monitoring server:
# /opt/monitor/compose.yamlservices: uptime-kuma: image: louislam/uptime-kuma:2 restart: unless-stopped volumes: - uptime-kuma:/app/data ports: - "127.0.0.1:3001:3001"volumes: uptime-kuma:
Start it with sudo docker compose up -d. The port is bound to 127.0.0.1, so put a reverse proxy with an SSL certificate in front of it, such as Nginx Proxy Manager or Caddy, on an address like monitor.dukkan-alkhor.com, or reach it through an SSH tunnel: ssh -L 3001:127.0.0.1:3001 admin@MONITOR_IP, then open http://localhost:3001. The first visit asks you to create the admin account; do that straight away, before anyone else finds the page. Keep the data volume on the server’s local disk: Uptime Kuma does not support network file systems such as NFS for its data.
The first monitors worth adding
- HTTP(s) with a keyword: Not just “the page answered”, but “the page contains Add to cart”. A site that returns an error page with status 200, or a blank page, passes a plain check and fails this one.
- Certificate expiry: Turn on the certificate expiry notification for HTTPS monitors, so a renewal that failed silently warns you days ahead instead of showing visitors a browser warning.
- TCP port: For services that are not web pages: the mail server on 587, the database from a trusted network, a game server.
- DNS record: Checks that your domain still resolves to the right address, which catches an expired domain or a mistaken record change.
- Push for scheduled jobs: Uptime Kuma gives you a URL, and your nightly backup script calls it with curl when it finishes. If the call does not arrive in time, you get an alert: the only reliable way to learn that a backup silently stopped.
# The last line of the nightly backup scriptcurl -fsS -m 10 --retry 3 "https://monitor.dukkan-alkhor.com/api/push/PUSH_TOKEN?status=up&msg=OK" > /dev/null
04Alerts that reach someone
A monitor is only as good as the alert it sends. In Uptime Kuma, under Settings then Notifications, add at least one channel and apply it to every monitor. Email over SMTP, Slack, Discord, Microsoft Teams, ntfy and generic webhooks are among the options. Choose the channel your team actually reads at night, and add a second one for the most important services.
Then tune the noise. A single failed check is often a network blip, so set Retries to 2 or 3: Uptime Kuma tries again before it declares the service down. Use maintenance windows when you update the server on purpose, so planned work does not wake anyone. And send a test notification after you set each channel up: a channel that has never delivered a message is not a channel.
05A status page for your customers
When the site is down, customers want to know that you know. A answers that before they write to you: it shows which services are working, any incident in progress, and recent history. Uptime Kuma builds one from the monitors you choose. Create a status page, group the monitors under names customers understand, such as Shop, Payments and Customer email, and point a domain at it, for example status.dukkan-alkhor.com.
Three rules make a status page useful. Host it away from the service it reports on, which the separate monitoring server already gives you. Post an incident note in plain words as soon as you know there is a problem, even if you do not yet know the cause. And close each incident with a short explanation of what happened. Large providers do the same: Illevante publishes the status of its own services at status.illevante.com.
06Server metrics with Prometheus and Grafana
For metrics, three open-source pieces work together. node_exporter runs on each server you watch and exposes its numbers, CPU, memory, disk, network, on port 9100. Prometheus, on the monitoring server, visits each exporter every few seconds, a model called , and stores the numbers as time series. Grafana reads from Prometheus and draws dashboards and sends alerts.
On each server you watch: node_exporter
# node_exporter in Docker, as its README describessudo docker run -d --name node-exporter --restart unless-stopped \ --net=host --pid=host -v "/:/host:ro,rslave" \ quay.io/prometheus/node-exporter:latest --path.rootfs=/host# Allow only the monitoring server to read itsudo ufw allow from MONITOR_IP to any port 9100 proto tcp# AlmaLinux:sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="MONITOR_IP" port port="9100" protocol="tcp" accept'sudo firewall-cmd --reload
node_exporter shares the host’s network here, so the firewall rules apply to it normally, unlike ports published by ordinary containers. Its metrics carry no password, so never leave port 9100 open to the world: they describe your server in detail.
On the monitoring server: Prometheus and Grafana
Add two services to the same compose.yaml as Uptime Kuma, and a prometheus.yml file next to it that lists the servers to scrape:
# Added under services: in /opt/monitor/compose.yaml prometheus: image: prom/prometheus:latest restart: unless-stopped command: - --config.file=/etc/prometheus/prometheus.yml - --storage.tsdb.retention.time=30d volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro - prom_data:/prometheus ports: - "127.0.0.1:9090:9090" grafana: image: grafana/grafana:latest restart: unless-stopped volumes: - grafana_data:/var/lib/grafana ports: - "127.0.0.1:3000:3000"# And under volumes: prom_data: grafana_data:
# /opt/monitor/prometheus.ymlglobal: scrape_interval: 30sscrape_configs: - job_name: node static_configs: - targets: ["SHOP_SERVER_IP:9100"] labels: server: shop
Run sudo docker compose up -d again. Prometheus keeps 15 days of data unless told otherwise, which is why the file sets 30. Open Grafana through your reverse proxy or a tunnel on port 3000; its first login is admin with the password admin, and it asks you to change it at once. Add a data source of type Prometheus with the address http://prometheus:9090, which works because both containers share the Compose network. Then, instead of building a dashboard from scratch, import the community dashboard Node Exporter Full by its ID, 1860, from the Dashboards page: it shows every common metric of every server you scrape.
07Alert thresholds worth setting
A dashboard nobody looks at prevents nothing; alerts do. Grafana’s alerting can evaluate rules on Prometheus data and send them to contact points much like Uptime Kuma’s. Start with these, and adjust after a few weeks of watching your real numbers:
| What | Threshold to start from | Why the duration |
|---|---|---|
| Server unreachable | up == 0 for 2 minutes | Long enough to skip a single missed scrape |
| Disk filling | Free space under 15%, or predicted full within 24 hours | The trend warns days before the outage |
| Memory | Available under 10% for 10 minutes | Short peaks are normal; sustained ones lead to the OOM killer |
| CPU | Over 90% for 15 minutes | Bursts are normal; a quarter hour at the top is not |
| Site down | 2 to 3 failed checks in a row in Uptime Kuma | A single network blip should not wake anyone |
| Certificate | Expires within 14 days | Time to fix a failed renewal calmly |
# Disk: less than 15% free on real file systemsnode_filesystem_avail_bytes{fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{fstype!~"tmpfs|overlay"} < 0.15# Disk: full within 24 hours at the rate of the last 6 hourspredict_linear(node_filesystem_avail_bytes{fstype!~"tmpfs|overlay"}[6h], 24 * 3600) < 0# Memory: less than 10% availablenode_memory_MemAvailable_bytes / node_memory_MemTotal_bytes < 0.10# CPU: busy percentage over 90100 - avg by (instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100 > 90
The predict_linear rule is the one that would have saved the Al Khor shop: it fires while there is still a day to act, not when the disk is already full. Set the pending period, the duration in the table, in each Grafana rule, so a condition must last before it alerts.
- ProblemUptime Kuma says the site is up, but customers see an error
- FixThe check accepts any page that answers. Switch to HTTP(s) with a keyword that only appears when the page works, such as the name of a product or Add to cart.
- ProblemPrometheus shows the target as DOWN with “context deadline exceeded”
- FixThe monitoring server cannot reach port 9100. Check that node_exporter is running and that the firewall on the watched server allows the monitor’s address.
- ProblemThe Grafana dashboard is empty
- FixThe data source address is wrong, or the time range is older than the data. Use http://prometheus:9090 and Last 1 hour, and check Status then Targets in Prometheus.
- ProblemAlerts fire many times a day for nothing
- FixThe threshold is too tight or has no duration. Add retries in Uptime Kuma and a pending period in Grafana, and raise the threshold to what your normal week looks like.
- ProblemNo alert arrived during an outage
- FixThe monitor was on the same server, or the notification channel was never tested. Move the monitor, then send a test notification from every channel.
08Monitoring on CoreVPS
Everything in this guide runs on a CoreVPS server, with full root access. The simplest setup is a second, small server dedicated to monitoring, which watches your main servers from outside:
- Uptime Kuma and Grafana as ready apps: Pick either under «Preinstalled software» on the CoreVPS order form, after choosing the operating system. Both run from the VPS Start plan, with 1 vCPU, 1 GB of memory and 20 GB of NVMe, and after delivery you receive an email with the app’s address and login details or setup steps.
- More monitoring apps: Prometheus, VictoriaMetrics, Zabbix and GlitchTip are among the ready apps too, and Nginx Proxy Manager puts any of them behind HTTPS on your domain.
- Watch from a second server: Run the monitor on its own VPS Start rather than on the server it watches, and point its checks at your main CoreVPS servers.
- Know the provider’s side: When an alert fires, status.illevante.com shows whether Illevante’s services have a known incident, so you know at once whether the problem is in your server or ours.
CoreVPS has nearly 100 ready apps, and the order form lists only those that support the chosen system and fit the plan. The current plans are in our Germany data centre, each with a monthly data transfer allowance; checks every minute use very little of it. If you are not sure how to size the monitoring server for the number of servers you watch, ask our technical support team, or read our guide to choosing a VPS.




