Skip to content

Instantly share code, notes, and snippets.

@zaquestion
Created February 15, 2017 11:00
Show Gist options
  • Save zaquestion/b9c6da25d4b20f17f0fc2ca276256651 to your computer and use it in GitHub Desktop.
Save zaquestion/b9c6da25d4b20f17f0fc2ca276256651 to your computer and use it in GitHub Desktop.
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