add node exporters

This commit is contained in:
2025-02-28 19:07:26 -06:00
parent be755f4cf4
commit f7159dff19
4 changed files with 68 additions and 8 deletions

View File

@@ -1,11 +1,17 @@
---
services:
node_exporter:
node-exporter:
image: quay.io/prometheus/node-exporter:v1.9.0
container_name: node_exporter
container_name: node-exporter
command:
- '--path.rootfs=/host'
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
ports:
- 9100:9100
pid: host
restart: always
volumes:
- '/:/host:ro,rslave'
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro