Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
example compose file that runs prometheus and the swarm integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nustiueudinastea committed Mar 27, 2017
1 parent 31fecf3 commit 2be2031
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3'

services:
swarm-discover:
image: seqvence/prometheus-swarm
command: ["-i", "5", "-o", "/swarm-endpoints/swarm-endpoints.json", "-p" , "prometheus_prometheus"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- swarm-endpoints:/swarm-endpoints/
prometheus:
image: prom/prometheus:v1.5.2
ports:
- '9090:9090'
volumes:
- ./prometheus-configs/:/etc/prometheus
- swarm-endpoints:/etc/swarm-endpoints/
command: ["-storage.local.retention=48h", "-storage.local.memory-chunks=1048576", "-config.file=/etc/prometheus/prometheus.yaml"]

volumes:
swarm-endpoints:

0 comments on commit 2be2031

Please sign in to comment.