chore: node exporter (#2979)

This commit is contained in:
icey-yu
2024-12-18 18:10:25 +08:00
committed by GitHub
parent 9929bd3ce5
commit 04f3c99697
15 changed files with 41 additions and 22 deletions
+18
View File
@@ -194,3 +194,21 @@ services:
volumes:
- ${DATA_DIR:-./}/components/grafana:/var/lib/grafana
network_mode: host
node-exporter:
image: ${NODE_EXPORTER_IMAGE}
container_name: node-exporter
restart: always
profiles:
- m
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--path.rootfs=/rootfs'
- '--web.listen-address=:19100'
network_mode: host