Prometheus node exporter
System metrics on port 9100 (private networks only)
Add to a guest
In the guest as root – container and VM alike:
update --add-modules node-exporterRuns a normal update and installs the module on the way.
From the Proxmox node, without logging in:
pct exec <ID> -- update --add-modules node-exporter # container
ssh root@<IP> update --add-modules node-exporterChoose when creating a guest
Without a dialog, on the Proxmox node:
IAC_NONINTERACTIVE=1 var_modules=auto-update,node-exporter \
bash -c "$(curl -fsSL https://iac.heyer.systems/<app>/ct.sh)"var_modules replaces the app's preselection – keep auto-update in the list if you want it. Interactive: choose “advanced” in the dialog, or tick the module in the generator on the app page.
Remove
update --remove-modules node-exporterRemoves the module's packages, services, firewall rules and configuration again. Data stays.
Details
The Prometheus node exporter from Debian publishes
the metrics of the guest – CPU, RAM, disks, file systems, network, systemd – at
http://<IP>:9100/metrics. Port 9100 is open from private networks only; there is no login
and no TLS.
Scrape it
On your Prometheus server, e.g. in prometheus.yml:
scrape_configs:
- job_name: node
static_configs:
- targets: ["192.0.2.20:9100", "192.0.2.21:9100"]
Grafana’s dashboard “Node Exporter Full” (ID 1860) shows them without further setup.
Check it
curl -s http://127.0.0.1:9100/metrics | head # in the guest
systemctl status prometheus-node-exporter
When the module is removed, the package and the firewall rule go again.