Adding volumes and commands to node-exporter
- Allows the collection of metrics from the host system
This commit is contained in:
parent
8bcc471b2b
commit
cfc8d45b1d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user