添加 docker-compose/prometheus/node-exporter/node.yaml

This commit is contained in:
2026-03-23 10:06:45 +08:00
parent 3fc18fc502
commit 0c715bc856

View File

@@ -0,0 +1,23 @@
version: '3.8'
services:
node-exporter:
image: prom/node-exporter:v1.10.2
container_name: node-exporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- /etc/hostname:/etc/host_hostname:ro
- /run/udev:/run/udev:ro
command:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
restart: always
network_mode: host
ports:
- "9100:9100"
deploy:
resources:
limits:
cpus: '0.2'
memory: 256M