Setup Prometheus node-exporter docker on a Fedora Server or Fedora Workstation to allow machine metrics scraping from a Prometheus server.
- Setup new node-exporter docker container.
$ cd scripts
$ sudo ./setup_node_exporter.sh
- Verify node-exporter docker container is running.
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
761cac2407ea prom/node-exporter:v0.15.2 "/bin/node_exporte..." 2 minutes ago Up 2 minutes 0.0.0.0:9100->9100/tcp node-exporter
Discover new versions here: https://hub.docker.com/r/prom/node-exporter/tags/
- Teardown old node-exporter docker container.
sudo ./teardown_node_exporter.sh
-
Update
REVISION
variable incfg.sh
file. -
Setup new node-exporter docker container.
sudo ./setup_node_exporter.sh