Files
x1208-exporter/monitoring-overlay/README.md
T

862 B

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

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.