prometheus-monitoring/compose.yml

22 lines
595 B
YAML

services:
# HOST METRICS
nodeexporter:
image: prom/node-exporter:v1.8.2
container_name: nodeexporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
- ./config:/etc/prometheus
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
- '--web.config.file=/etc/prometheus/web.yml'
restart: unless-stopped
ports:
- 9100:9100
labels:
org.label-schema.group: "monitoring"