24 lines
590 B
YAML
24 lines
590 B
YAML
# {{ ansible_managed }}
|
|
version: '3.1'
|
|
|
|
services:
|
|
nodeexporter:
|
|
image: prom/node-exporter:{{ docker_nodeexporter_version }}
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
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)($$|/)'
|
|
restart: always
|
|
labels:
|
|
org.label-schema.group: "monitoring"
|
|
ports:
|
|
- {{ docker_nodeexporter_port }}:9100
|
|
|
|
|