Server Monitoring. Beszel and more

Server Monitoring. Beszel and more

February 5, 2025

Recently I was setting a VPS to software for weddings.

And i found this on reddit - https://www.reddit.com/r/selfhosted/comments/1eb4bi5/i_just_released_beszel_a_server_monitoring_hub/

So I went back to https://console.hetzner.cloud/projects to try the setup.

Beszel

MIT | Lightweight server monitoring hub with historical data, docker stats, and alerts.

Following the docs - https://beszel.dev/guide/getting-started

services:
  beszel:
    image: henrygd/beszel:latest
    container_name: beszel
    restart: unless-stopped
    extra_hosts:
      - host.docker.internal:host-gateway
    ports:
      - 8090:8090
    volumes:
      - ./beszel_data:/beszel_data

  beszel-agent:
    image: henrygd/beszel-agent:latest
    container_name: beszel-agent
    restart: unless-stopped
    network_mode: host
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      PORT: 45876
      # Do not remove quotes around the key
      KEY: 'UPDATE WITH YOUR PUBLIC KEY (copy from "Add system" dialog)' #you will take it from the UI when adding a new monitor, copy the compose for the agent, and there it is

Then, you will create the admin user at first login.

And you will be at this point:

Beszel

From where you can add the first PC to monitor

Beszel

See how DBTech does the full process:

And you can add the agent as CLI (instead of a docker service):

Beszel

ℹ️
Remember to add the Public server IP as host (or the private IP of your home network like 192.168.0.12)

Beszel

Other Monitoring Solutions

Tianji

Its not just a web analytics tool!

Tianji Server Monitoring

You just need to setup the given script on your server that pops up when you try to add it.

Tianji Server Setup

To stop it:

systemctl --type=service --state=running
# sudo systemctl stop tianji-reporter.service
If you just need web analytics - See Medama 📌
version: '3.9'
services:
  medama:
    image: ghcr.io/medama-io/medama:latest
    container_name: medama
    restart: unless-stopped
    environment:
      - LOGGER=pretty
    ports:
      - "8085:8080"
    volumes:
      - ./data:/app/data

Netdata and Grafana

And you can actually use Netdata + Grafana + Prometheus to make a cool monitoring setup.

Internet Monitoring Tools

  1. With a Raspberry Pi
  2. Internet Speed Tracker
  3. WatchYourLan Setup
  4. Gatus - OSS website monitoring!
  5. https://akashrajpurohit.com/blog/monitor-internet-speed-with-speedtest-tracker/