1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/prometheus/compose.yml
2022-05-29 22:59:28 +09:00

27 lines
679 B
YAML

services:
node-exporter:
image: prom/node-exporter
expose: ["9100"]
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
prometheus:
image: prom/prometheus
expose: ["9090"]
volumes:
- ./etc/prometheus:/etc/prometheus
- prometheus_data:/prometheus
grafana:
image: grafana/grafana-oss
ports: ["3000:3000"]
volumes:
- grafana_data:/var/lib/grafana
volumes:
prometheus_data:
grafana_data: