Skip to content
Snippets Groups Projects
Commit f253ae74 authored by Alexander Tim Hobelsberger's avatar Alexander Tim Hobelsberger
Browse files

mongoDB Exporter

parent cd1e34b2
Branches
No related tags found
No related merge requests found
......@@ -21,6 +21,17 @@ services:
deploy:
mode: global
mongodb-exporter:
image: percona/mongodb_exporter:2.32.0
container_name: mongodb-exporter
ports:
- "9216:9216"
expose:
- 9216
restart: unless-stopped
command:
- '--mongodb.uri=mongodb://mongodb:27017/cloudComputing'
prometheus:
image: prom/prometheus:latest
......
......
......@@ -14,14 +14,21 @@ scrape_configs:
scrape_interval: 5s
# scheme: https
static_configs:
- targets: ['192.168.2.34:5000']
- targets: ['192.168.0.230:5000']
- job_name: 'node-exporter'
honor_labels: true
scrape_interval: 5s
# scheme: https
static_configs:
- targets: ['192.168.2.34:9100']
- targets: ['192.168.0.230:9100']
- job_name: 'mongodb-exporter'
honor_labels: true
scrape_interval: 5s
#scheme: https
static_configs:
- targets: ['192.168.0.230:9216']
#remote_write:
#- url: "localhost:3000"
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment