Skip to content

Commit

Permalink
added mongo exporter test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan authored and Stefan Prodan committed Aug 30, 2017
1 parent 4031e25 commit 2d93420
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
28 changes: 22 additions & 6 deletions test-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,34 @@ networks:
net:
driver: overlay
attachable: true
mon_net:
external: true

services:
redis:
image: healthcheck/redis:alpine

mongo:
image: healthcheck/mongo:latest
networks:
- net
deploy:
mode: global
mode: replicated
replicas: 1
placement:
constraints:
- node.role != manager

mongo:
image: healthcheck/mongo:latest
mongo-exporter:
image: forekshub/percona-mongodb-exporter:latest
networks:
- net
- mon_net
ports:
- "9216:9216"
environment:
- MONGODB_URL=mongodb://mongo:27017
deploy:
mode: global
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
1 change: 1 addition & 0 deletions weave-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ services:
- net
environment:
- WEAVE_TOKEN=$TOKEN
#- JOBS=mongo-exporter:9216
command:
- '-config.file=/etc/prometheus/weave-cortex.yml'
- '-storage.local.path=/prometheus'
Expand Down

0 comments on commit 2d93420

Please sign in to comment.