fixed formatting of the node-exporter command and changed the network to host as recommend by docs
This commit is contained in:
parent
26811c27b9
commit
abf7684761
|
@ -7,6 +7,7 @@ volumes:
|
|||
networks:
|
||||
front-tier:
|
||||
back-tier:
|
||||
host:
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
|
@ -42,11 +43,15 @@ services:
|
|||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
command: '--path.procfs=/host/proc --path.sysfs=/host/sys --collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($$|/)" --collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$$"'
|
||||
command:
|
||||
- '--path.procfs=/host/proc'
|
||||
- '--path.sysfs=/host/sys'
|
||||
- '--collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($$|/)"'
|
||||
- '--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$$"'
|
||||
expose:
|
||||
- 9100
|
||||
networks:
|
||||
- back-tier
|
||||
- host
|
||||
restart: always
|
||||
deploy:
|
||||
mode: global
|
||||
|
|
Loading…
Reference in New Issue