971fe8dda8
Post-Swarm: node-exporter must run standalone with pid:host, since Swarm mode blocked it and cross-node /proc namespaces contaminated swap metrics. Marks the stacks/ definition superseded. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
644 B
YAML
25 lines
644 B
YAML
services:
|
|
node-exporter:
|
|
image: prom/node-exporter:v1.7.0
|
|
container_name: node-exporter
|
|
hostname: hf-pdocker-02
|
|
network_mode: host
|
|
pid: host
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
- /:/rootfs:ro
|
|
command:
|
|
- '--path.procfs=/host/proc'
|
|
- '--path.rootfs=/rootfs'
|
|
- '--path.sysfs=/host/sys'
|
|
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "50m"
|
|
max-file: "3"
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=false"
|