Skip to content

Instantly share code, notes, and snippets.

@H2so4
Last active January 15, 2016 23:27
Show Gist options
  • Save H2so4/4cdc9c18ba6fe8bea15e to your computer and use it in GitHub Desktop.
Save H2so4/4cdc9c18ba6fe8bea15e to your computer and use it in GitHub Desktop.
docker monitoring compose
influxsrv:
image: tutum/influxdb:0.8.8
name: influxsrv
volumes:
- ./data:/data
ports:
- "8083:8083"
- "8086:8086"
expose:
- "8090"
- "8099"
environment:
- PRE_CREATE_DB=cadvisor
cadvisor:
image: google/cadvisor
name: cadvisor
command: -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxsrv:8086
ports:
- "8080:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
links:
- influxsrv:influxsrv
grafana:
image: grafana/grafana
name: grafana
ports:
- "3000:3000"
links:
- influxsrv:influxsrv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment