Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cloud_Computing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Tim Hobelsberger
Cloud_Computing
Commits
591e0a9e
Commit
591e0a9e
authored
2 years ago
by
Markus Klose
Browse files
Options
Downloads
Plain Diff
Merge branch 'mongo-exporter' into 'main'
More comments See merge request
!8
parents
6ec4ab6c
7156ac88
Branches
master
Branches containing commit
No related tags found
1 merge request
!8
More comments
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yaml
+11
-2
11 additions, 2 deletions
docker-compose.yaml
prometheus/prometheus.yml
+3
-3
3 additions, 3 deletions
prometheus/prometheus.yml
with
14 additions
and
5 deletions
docker-compose.yaml
+
11
−
2
View file @
591e0a9e
version
:
'
3'
services
:
# Image of node-exporter
# node-exporter provides detailed metrics to prometheus.
# It monitors a broad variety of metrics abot the host system, network traffic and physical hardware and more.
node-exporter
:
image
:
prom/node-exporter:latest
container_name
:
node-exporter
...
...
@@ -21,6 +24,8 @@ services:
deploy
:
mode
:
global
# Image of mongoDB-exporter
# mongoDB-exporter will monitor the mongoDB Database and provide an Endpoint, which Prometheus can scrape data from.
mongodb-exporter
:
image
:
percona/mongodb_exporter:2.32.0
container_name
:
mongodb-exporter
...
...
@@ -30,9 +35,11 @@ services:
-
9216
#restart: unless-stopped
command
:
-
'
--mongodb.uri=mongodb://mongodb:27017/cloudComputing/
admin?ssl=false
'
-
'
--mongodb.uri=mongodb://mongodb:27017/cloudComputing/'
# Image of Prometheus
# Prometheus scarpes metric data from html Endpoints
# Configuration of Prometheus in Prometheus.yml file
prometheus
:
image
:
prom/prometheus:latest
container_name
:
prometheus
...
...
@@ -47,6 +54,8 @@ services:
command
:
-
"
--config.file=/etc/prometheus/prometheus.yml"
# Image of Grafana
# Grafana takes the metric data from Prometheus and visualizes data in web UI
grafana
:
image
:
grafana/grafana:latest
container_name
:
grafana
...
...
This diff is collapsed.
Click to expand it.
prometheus/prometheus.yml
+
3
−
3
View file @
591e0a9e
...
...
@@ -14,21 +14,21 @@ scrape_configs:
scrape_interval
:
5s
# scheme: https
static_configs
:
-
targets
:
[
'
192.168.
0.230
:5000'
]
-
targets
:
[
'
192.168.
2.34
:5000'
]
-
job_name
:
'
node-exporter'
honor_labels
:
true
scrape_interval
:
5s
# scheme: https
static_configs
:
-
targets
:
[
'
192.168.
0.230
:9100'
]
-
targets
:
[
'
192.168.
2.34
:9100'
]
-
job_name
:
'
mongodb-exporter'
honor_labels
:
true
scrape_interval
:
5s
#scheme
:
https
static_configs
:
-
targets
:
[
'
192.168.
0.230
:9216'
]
-
targets
:
[
'
192.168.
2.34
:9216'
]
#remote_write:
#- url: "localhost:3000"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment