Skip to content

Instantly share code, notes, and snippets.

@usmanismail
Created June 23, 2015 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usmanismail/db03952d60cd40dec27a to your computer and use it in GitHub Desktop.
Save usmanismail/db03952d60cd40dec27a to your computer and use it in GitHub Desktop.
Monitoring:
command:
- -labels=io.rancher.project.name,io.rancher.project_service.name,io.rancher.container.system,foo
image: usman/container-exporter:v1
ports:
- 9104:9104/tcp
labels:
io.rancher.scheduler.global: 'true'
io.rancher.scheduler.affinity:host_label: monitored=true
volumes:
- /sys/fs/cgroup:/cgroup
- /var/run/docker.sock:/var/run/docker.sock
stdin_open: true
tty: true
prometheus:
ports:
- 9090:9090/tcp
restart: 'no'
tty: true
image: usman/prometheus
links:
Monitoring: monitoring
stdin_open: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment