Choose Beszel if you want built-in host and Docker history with configurable alerts. Choose Prometheus with Grafana if you want to query application metrics with PromQL and build dashboards around those queries. Beszel’s supported metrics · Prometheus architecture · Grafana’s Prometheus query editor
What each stack collects
| What you need | Beszel | Prometheus with Grafana |
|---|---|---|
| Linux CPU, memory and disk metrics | An agent on each monitored system sends metrics to the hub, which includes the dashboard. Beszel architecture | Node Exporter exposes host metrics, Prometheus scrapes and stores them, and Grafana queries Prometheus. Host metric examples · Prometheus architecture |
| Docker container CPU, memory and network history | The hub shows per-container history from the agent. Beszel’s supported metrics | Prometheus scrapes container metrics from cAdvisor, and Grafana can display those metrics. Prometheus cAdvisor guide · Prometheus architecture |
| Alerts and notifications | Enable alerts in the systems table and set the Shoutrrr destination URL under Settings → Notifications. Beszel notifications | Create Grafana-managed rules against the Prometheus data source, or define rules in Prometheus and send their alerts to Alertmanager for notification delivery. Grafana alerting · Prometheus alerting |
To check which container was using memory when a host slowed down, start with Beszel. To plot an application’s request rate alongside host metrics, start with Prometheus and Grafana. Beszel’s supported metrics · Prometheus application metrics · Grafana’s Prometheus query editor
Connect the first Beszel agent
Use the local-agent Compose example on a Linux host with Docker Compose. Keep the trial on a private network because the example publishes the hub port. The example also mounts the Docker daemon socket. Docker recommends allowing only trusted users to control the daemon. Beszel getting started · Docker port publishing · Docker Engine security
services:
beszel:
image: henrygd/beszel:latest
container_name: beszel
restart: unless-stopped
environment:
APP_URL: http://localhost:8090
ports:
- 8090:8090
volumes:
- ./beszel_data:/beszel_data
- ./beszel_socket:/beszel_socket
# healthcheck:
# test: ['CMD', '/beszel', 'health', '--url', 'http://localhost:8090']
# interval: 120s
# start_period: 10s
# timeout: 5s
beszel-agent:
image: henrygd/beszel-agent:latest
container_name: beszel-agent
restart: unless-stopped
network_mode: host
volumes:
- ./beszel_agent_data:/var/lib/beszel-agent
- ./beszel_socket:/beszel_socket
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
LISTEN: /beszel_socket/beszel.sock
HUB_URL: http://localhost:8090
TOKEN: <token>
KEY: "<key>"
# healthcheck:
# test: ['CMD', '/agent', 'health']
# interval: 120s
- Save the Compose example above as
docker-compose.yml. Rundocker compose up -din that directory. Openhttp://localhost:8090from the host and create the admin account. Beszel hub setup - Open Add System and enter
/beszel_socket/beszel.sockin Host / IP. Set the agent’sKEYandTOKENin the Compose file to the public key and token from the dialog. Beszel local-agent setup - Run
docker compose up -dagain, then click Add System in the dialog. Look for the new system to turn green in the table. View the host metrics in the hub dashboard. Beszel getting started · Beszel hub dashboard
Verify the first Prometheus scrape and Grafana query
For this trial, run all three components directly on the same Linux host. Install Grafana and extract the Prometheus and Node Exporter archives before starting. Keep the Prometheus HTTP endpoint off public networks. Users with access to the endpoint can read all of its time series. Node Exporter guide · Grafana installation · Prometheus security model
-
From the extracted Node Exporter directory, run
./node_exporter. In another terminal, runcurl http://localhost:9100/metricsto check that the exporter returns metrics. Node Exporter guide -
In the extracted Prometheus directory, use this
prometheus.ymlfor the trial. On an existing instance, add thenodejob to the currentscrape_configslist and restart Prometheus. Node Exporter scrape configuration · Prometheus configuration exampleglobal: scrape_interval: 15s scrape_configs: - job_name: node static_configs: - targets: ['localhost:9100'] -
For a fresh instance, start Prometheus with
./prometheus --config.file=./prometheus.yml. In the expression browser athttp://localhost:9090/query, runupand check the series for thenodejob. A value of1means the scrape succeeded and0means it failed. Node Exporter guide · Prometheus expression browser · Prometheus scrape health -
As a Grafana organization administrator, open Connections → Add new connection. Find Prometheus, select it and click Add new data source. Set Prometheus server URL to
http://localhost:9090and click Save & test. Look for “Successfully queried the Prometheus API.” Grafana data source setup -
In Grafana Explore, select that Prometheus data source. Switch to Code, enter
node_memory_MemAvailable_bytesand click Run query. Look for the host’s available-memory series. Prometheus metric example · Grafana Code mode · Grafana Explore controls
If you use Docker Compose to run Grafana and Prometheus in separate containers, use the Prometheus hostname in the data source URL. Each container has its own localhost. Grafana connection settings
Evidence and limits. The Beszel 0.21.2 guide, the Prometheus documentation, and the Grafana 13.3 documentation were checked on November 26, 2026. The example steps were not run.