Adding volumes and commands to node-exporter

- Allows the collection of metrics from the host system
This commit is contained in:
Ben Clapp 2017-03-01 20:49:36 +13:00
parent 8bcc471b2b
commit cfc8d45b1d
1 changed files with 9 additions and 0 deletions

View File

@ -34,7 +34,16 @@ services:
- back-tier
node-exporter:
container_name: node-exporter
image: prom/node-exporter
volumes:
- /proc:/host/proc
- /sys:/host/sys
- /:/rootfs
command:
- '-collector.procfs=/host/proc'
- '-collector.sysfs=/host/sysfs'
- '-collector.filesystem.ignored-mount-points="^/(sys|proc|dev|host|etc)($$|/)"'
expose:
- 9100
networks: