Skip to content

Instantly share code, notes, and snippets.

@otknoy
Last active May 29, 2020 00:19
Show Gist options
  • Save otknoy/5d541090c11d74003c8d8396238d2972 to your computer and use it in GitHub Desktop.
Save otknoy/5d541090c11d74003c8d8396238d2972 to your computer and use it in GitHub Desktop.
monitoring
version: '2'
services:
grafana:
image: grafana/grafana:6.1.4
volumes:
- ./grafana:/var/lib/grafana
ports:
- 3000:3000
mem_limit: 128m
prometheus:
image: prom/prometheus:v2.8.1
volumes:
- ./prometheus-data/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
mem_limit: 512m
influxdb:
image: influxdb:1.7.5
volumes:
- ./influxdb:/var/lib/influxdb
environment:
INFLUXDB_DB: prometheus
ports:
- 8086:8086
mem_limit: 512m
node-exporter:
image: quay.io/prometheus/node-exporter
ports:
- 9100:9100
volumes:
- /proc:/host/proc
- /sys:/host/sys
- /:/rootfs
mem_limit: 128m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment