Created
February 15, 2017 11:00
-
-
Save zaquestion/b9c6da25d4b20f17f0fc2ca276256651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.0" | |
services: | |
grafana: | |
image: grafana/grafana | |
restart: always | |
ports: | |
- 3000:3000 | |
prometheus: | |
image: prom/prometheus:0.18.0 | |
ports: | |
- 9090:9090 | |
volumes: | |
- ./prometheus.yml:/etc/prometheus/prometheus.yml | |
command: | |
- '-config.file=/etc/prometheus/prometheus.yml' | |
node-exporter: | |
image: quay.io/prometheus/node-exporter | |
restart: always | |
network_mode: host | |
ports: | |
- 9100:9100 | |
volumes: | |
- /proc:/host/proc | |
- /sys:/host/sys | |
- /:/rootfs | |
command: [/bin/node_exporter, -collector.procfs /host/proc, -collector.sysfs /host/sys, -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($$|/)"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment