Monitoring On Its Own Board
Prometheus, Grafana and Alertmanager on a Rock 5B: pinned images, dashboards and alert rules as files, and alerts that reach my phone through the proxy.
Published November 21, 2026 · Updated December 2, 2026
My first monitoring stack lived in a container on the Proxmox host it was watching. Prometheus And Grafana Stack On Proxmox builds it.
It worked. It also had a blind spot exactly the size of the host. If the host went down, the thing that was supposed to tell me went down with it.
Now the stack runs on a small board that shares nothing with either Proxmox node. Why it moved is on Alerts That Still Arrive When The Lab Is Down. This page is how it is put together.
The Board
| Item | Value |
|---|---|
| Hardware | Radxa Rock 5B |
| System | Armbian: Debian 13 with the vendor 6.1 kernel |
| Disk | the whole system on a 1 TB NVMe |
| Bootloader | in the board's own SPI flash |
| microSD | not in the slot; kept as a rescue card |
| Network | MONITOR (VLAN 50), at 10.0.50.10, with no internet |
The SD card stays out on purpose.
I looked at three ways to lay this board out. With the system on the card, Docker, apt and the logs write to it all day, and every boot depends on it. With only /boot on the card, there are fewer writes, but a corrupt card still means no boot. With the card out, the only thing in the boot path is the NVMe, and the card cannot wear out while it waits in a drawer.
The Stack
Four containers in Docker Compose. An Ansible role writes the compose file and every config file, and one playbook puts the whole stack on the board from the repository.
| Container | Image | Tag |
|---|---|---|
| Prometheus | prom/prometheus | v3.13.5 |
| Grafana | grafana/grafana | 12.4.15 |
| Alertmanager | prom/alertmanager | v0.34.2 |
| Blackbox exporter | prom/blackbox-exporter | v0.29.1 |
I never use latest. I bump the tags by hand, about once a quarter, and run the playbook again. The old images stay on the board, so going back to the previous tag needs no download.
Every container uses host networking, and every listener is bound to one address, never 0.0.0.0. Alertmanager and the blackbox exporter listen on the board's loopback only, because nothing else needs to reach them.
Prometheus scrapes every 15 seconds and keeps 90 days.
What It Watches
| What | How |
|---|---|
| Every Debian host, both Proxmox nodes included | the node exporter, as the plain Debian package prometheus-node-exporter. It is not a container, so it is updated with everything else on the host |
| The GPUs and the model server | two exporters inside the container that runs the models, not on the host |
| The front door | an HTTPS probe for every service address, through the reverse proxy. The same probe reads each certificate's expiry date |
| DNS | both Pi-holes, and the address they share, must answer with the right record |
| The internet | a probe through the proxy, every two minutes. That is the path the alerts take, so when it fails I also know the pushes cannot leave |
I do not type the list of hosts anywhere. The scrape jobs are generated from the Ansible inventory, so a new host is watched from the next run of the monitoring playbook.
Dashboards Are Files
Grafana gets its data source and its dashboards from files.1 I click nothing into place, and the dashboards are read-only in the UI. To change one, I change its JSON in the repository and run the playbook.
Import by ID cannot work here anyway, because Grafana has no internet. When I want a community dashboard, I download its JSON on my Mac, point it at the lab's data source, and add the file.
The set is small:
- Lab status, my own, and Grafana's home page. It has one tile per system, coloured by the same alert rules that push to my phone, so the page and the pushes cannot disagree.
- Node Exporter Full (1860)
- Prometheus Blackbox Exporter (7587)
- Nvidia GPU Metrics (14574)
- AI farm activity, my own.
Alert Rules Are Files Too
The alerts are Prometheus rules, not Grafana alerts. Grafana is only a viewer here. It has no alert rules and no contact points, and its mail is switched off. I wanted one alert path, not two to keep in step.
There are sixteen rules. A few of them:
| Alert | Fires when |
|---|---|
TargetDown | something has not answered its scrape for 5 minutes |
FilesystemLow | a filesystem has less than 10% free |
ZfsPoolDegraded | a ZFS pool on a Proxmox node is not online |
GpuHot | a GPU stays above 85 °C for 10 minutes |
CertExpiringSoon | a certificate behind the front door has under 14 days left |
HostRebooted | a host booted less than 10 minutes ago |
The rules have unit tests. Before the playbook replaces the live rules, it runs promtool test rules with the pinned Prometheus image.2 A failing test stops the run. So does a rules file or an Alertmanager config that does not parse. Either way, the broken file never reaches the running stack.
How An Alert Reaches My Phone
The monitoring VLAN has no internet, so Alertmanager posts through the proxy board to ntfy.sh, and the ntfy app on my phone shows it. One receiver looks like this, with the topic left out:
- name: 'ntfy-critical'
webhook_configs:
- url: 'https://ntfy.sh/<topic>?template=alertmanager&priority=5'
send_resolved: true
http_config:
proxy_url: 'http://10.0.40.19:3128'There is no bridge between the two. ntfy has a built-in alertmanager template that turns Alertmanager's message into something readable.3
The priority in that address follows the severity. Critical alerts go out as urgent (5), warnings as default (3), and a reboot as low (2).3 An alert that stays unresolved comes back every four hours, and I get the resolved message too.
One rule stops a flood. Every HTTPS probe goes through the reverse proxy, so when the proxy itself is down, every probe fails with it. An inhibit rule holds those back while the proxy's own alert fires, and I get one push, not twelve.4
inhibit_rules:
- source_matchers: ['alertname="TargetDown"', 'host="caddy"']
target_matchers: ['alertname="ProbeFailed"', 'job="blackbox-https"']One alert never reaches the phone at all. It is always firing, and it goes to Healthchecks.io every few minutes. If it stops arriving, Healthchecks emails me. That is how a dead board, a dead proxy or a power cut still reaches me, and the full story is on Alerts That Still Arrive When The Lab Is Down.
Checking The Whole Path
A rule that has never fired proves nothing about the phone, so I test the path from the far end. On the board, this adds a fake critical alert:
docker exec alertmanager amtool alert add PhoneTest severity=critical instance=test \
--alertmanager.url=http://127.0.0.1:9093The phone should get an urgent push within a minute, and a resolved one about five minutes later. If it does, Alertmanager, the proxy, ntfy and the phone all work.
Before A Grafana Upgrade
When I went from Grafana 11.3 to 12.4, the database migration only went one way. So before a new Grafana version starts on the old data, I keep a copy of it:
cd /opt/monitoring
docker compose stop grafana
tar -czf ~/grafana-backup.tgz -C /data grafana
docker compose start grafanaIt is about 2 MB. I copy it off the board before the playbook runs with the new tag.
What It Costs Me
Alerts leave through the proxy board. If that board is down, the pushes wait, and the Healthchecks email is what tells me.
Away from home, the dashboards come through the reverse proxy on one of the nodes. With that node down, the pushes still arrive, but the page does not.
The monitor no longer goes down with the thing it monitors. That was the whole job.
Related Topics
- Alerts That Still Arrive When The Lab Is Down - why monitoring moved off the host.
- Radxa Rock 5B - the board.
- Prometheus And Grafana Stack On Proxmox - my first stack, in a container on the host.
- Dashboards And Alerting On Proxmox - my first dashboards, and alerts from Grafana by email.
- Package Cache On A Raspberry Pi - the proxy board the alerts leave through.
- GPU Passthrough On Proxmox - where the GPU metrics start.
Footnotes
-
Grafana documentation, "Provision Grafana": data sources and dashboards can be defined in files that are version controlled; with
allowUiUpdatesset tofalse, changes to a provisioned dashboard cannot be saved from the UI. ↩ -
Prometheus documentation, "Unit testing for rules":
promtool test rulesruns unit tests for alerting rules. ↩ -
ntfy documentation, "Publishing": the five message priorities, from 1 (min) through 3 (default) to 5 (max, or urgent), and the pre-defined templates, one of which formats Alertmanager's webhook payloads. ↩ ↩2
-
Prometheus documentation, Alertmanager configuration,
inhibit_rule: an inhibition rule mutes alerts matching one set of matchers while an alert matching another set exists. ↩