Node Exporter / Prometheus
For anyone running node-exporter directly on the Firewalla Gold, I was able to deploy a persistent docker container for prom/node-exporter by kicking the version of the docker-compose example from github down to v3. It deployed without issue using the same instructions for persistence provided for pi-hole, etc.. It works wonderfully with my prometheus/grafana installation, and took about 5 minutes to get working. This was the easiest way by far I could find to get this running quickly on the device, and it gives every longitudinal metric you could ever ask for on the device.
Thanks for supporting this functionality Firewalla Team!
---

-
Alternatively for those who dislike docker-compose.
Enable & Start Docker (if required)
$ sudo systemctl start docker
$ sudo systemctl enable dockerStart Prometheus' node exporter on startup.
https://help.firewalla.com/hc/en-us/articles/360054056754-Customized-Scripting-
$ mkdir ~/.firewalla/config/post_main.d/
$ cat ~/.firewalla/config/post_main.d/prometheus.sh
#!/bin/bash
/usr/bin/sudo /usr/bin/docker run --pull always -d --restart always --name node-exporter --network=host -v "/:/host:ro,rslave" quay.io/prometheus/node-exporter:latest --path.rootfs=/host
Please sign in to leave a comment.
Comments
1 comment