fixed formatting of the node-exporter command and changed the network to host as recommend by docs

This commit is contained in:
Brian Christner 2017-10-12 06:42:49 +02:00
parent 26811c27b9
commit abf7684761
No known key found for this signature in database
GPG Key ID: 8453AD0CB29591D1
1 changed files with 7 additions and 2 deletions

View File

@ -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