Skip to content

Commit

Permalink
wip: mongodb prometheus exporter deploy extensions in kargo.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Nov 30, 2020
1 parent 4cd0ab6 commit ff6c405
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
19 changes: 19 additions & 0 deletions deploy/prometheus-mongodb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3.5'

services:
mongodb-exporter:
image: ${PROMETHEUS_MONGODB_EXPORTER_IMAGE}:${PROMETHEUS_MONGODB_EXPORTER_TAG}
command:
- '--mongodb.uri=mongodb://mongodb'
deploy:
replicas: 1
resources:
limits:
memory: 128M
reservations:
memory: 64M
placement:
constraints:
- node.labels.mongodb == true
networks:
- kargo-network
53 changes: 53 additions & 0 deletions deploy/prometheus-mongors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: '3.5'

services:
mongodb0-exporter:
image: ${PROMETHEUS_MONGODB_EXPORTER_IMAGE}:${PROMETHEUS_MONGODB_EXPORTER_TAG}
command:
- '--mongodb.uri=mongodb://mongodb0'
deploy:
replicas: 1
resources:
limits:
memory: 128M
reservations:
memory: 64M
placement:
constraints:
- node.labels.mongodb0 == true
networks:
- kargo-network

mongodb1-exporter:
image: ${PROMETHEUS_MONGODB_EXPORTER_IMAGE}:${PROMETHEUS_MONGODB_EXPORTER_TAG}
command:
- '--mongodb.uri=mongodb://mongodb1'
deploy:
replicas: 1
resources:
limits:
memory: 128M
reservations:
memory: 64M
placement:
constraints:
- node.labels.mongodb1 == true
networks:
- kargo-network

mongodb2-exporter:
image: ${PROMETHEUS_MONGODB_EXPORTER_IMAGE}:${PROMETHEUS_MONGODB_EXPORTER_TAG}
command:
- '--mongodb.uri=mongodb://mongodb2'
deploy:
replicas: 1
resources:
limits:
memory: 128M
reservations:
memory: 64M
placement:
constraints:
- node.labels.mongodb2 == true
networks:
- kargo-network

0 comments on commit ff6c405

Please sign in to comment.