Server Monitoring. Beszel and more
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:
From where you can add the first PC to monitor
See how DBTech does the full process:
And you can add the agent as CLI (instead of a docker service):
192.168.0.12
)Other Monitoring Solutions
Tianji
Its not just a web analytics tool!
You just need to setup the given script on your server that pops up when you try to add it.
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
- With a Raspberry Pi
- Internet Speed Tracker
- WatchYourLan Setup
- Gatus - OSS website monitoring!
- https://akashrajpurohit.com/blog/monitor-internet-speed-with-speedtest-tracker/