initial commit: geekworm x1208 ups prometheus exporter

This commit is contained in:
2026-04-17 20:30:34 +02:00
commit aae6cee886
11 changed files with 389 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
# Monitoring overlay for the Pi
These two files are the desired state of `/home/mokhtar/app/monitoring/` on the Pi
after the X1208 exporter is in place. The `.original` siblings are snapshots of
what's there right now (pulled with `ssh rpi cat ...`).
## Diff summary
**`compose.yaml`** — node-exporter service:
- Add volume `/var/lib/node-exporter/textfiles:/textfiles:ro`
- Add command flag `--collector.textfile.directory=/textfiles`
**`prometheus.yaml`** — global block:
- Add `external_labels: { host: rpi }` so metrics are tagged in Grafana Cloud
(instead of relying on the Docker service name as `instance`).
## Apply
```bash
scp compose.yaml prometheus.yaml rpi:/home/mokhtar/app/monitoring/
ssh rpi 'cd /home/mokhtar/app/monitoring && docker compose up -d'
```
This recreates the node-exporter container (~2s blip) and reloads Prometheus.