Skip to content

Instantly share code, notes, and snippets.

@prologic
Last active August 29, 2015 14:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prologic/8bcd82f800ed64febe19 to your computer and use it in GitHub Desktop.
Save prologic/8bcd82f800ed64febe19 to your computer and use it in GitHub Desktop.
autodock based Docker Compose for Prometheus monitoring
autodock:
image: prologic/autodock
ports:
- "1338:1338/udp"
- "1338:1338/tcp"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
autodockhipache:
image: prologic/autodock-hipache
links:
- autodock
- hipache:redis
restart: always
promserver:
image: prom/prometheus
volumes:
- /home/prologic/etc/prometheus.yml:/prometheus.yml
environment:
- PORT=9090
- VIRTUALHOST=prometheus.vz1.bne.shortcircuit.net.au
command: -config.file=/prometheus.yml
restart: always
promexporter:
image: prom/container-exporter
volumes:
- /sys/fs/cgroup:/cgroup
- /var/run/docker.sock:/var/run/docker.sock
environment:
- PORT=9104
- VIRTUALHOST=metrics.vz1.bne.shortcircuit.net.au
restart: always
hipache:
image: hipache:0.2.8
ports:
- "80:80"
- "443:443"
restart: always
global:
scrape_interval: 15s
evaluation_interval: 15s
labels:
monitor: exporter-metrics
scrape_configs:
- job_name: prometheus
scrape_interval: 5s
target_groups:
- targets: ["localhost:9090", "metrics.vz1.bne.shortcircuit.net.au"]
@prologic
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment