Last active
August 29, 2015 14:25
-
-
Save prologic/8bcd82f800ed64febe19 to your computer and use it in GitHub Desktop.
autodock based Docker Compose for Prometheus monitoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on what I learnedd from: http://rancher.com/docker-monitoring-continued-prometheus-and-sysdig/