Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monitoring-ws21
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Michael Schenkelberger
monitoring-ws21
Commits
6ee65838
Commit
6ee65838
authored
3 years ago
by
Michael Schenkelberger
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
91b32285
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Projekt/README.md
+44
-0
44 additions, 0 deletions
Projekt/README.md
with
44 additions
and
0 deletions
Projekt/README.md
+
44
−
0
View file @
6ee65838
...
...
@@ -351,3 +351,47 @@ Ein ggf. angezeigter Hinweis zum Kernel kann ignoriert werden.
Nun befindet man sich bereits in Grafana.
## 9. Optional: Wetterdaten (kostenloser OpenWeather Account notwendig)
1.
Anlegen einer OpenWeather API
<br>
https://home.openweathermap.org/api_keys
2.
Erweiterung der docker-compose.yml um openweather-exporter
```shell
nano docker-compose.yml
```
Unter services einfügen und hinter OW_APIKEY= die eigene API aus Schritt 9.1 Einfügen.
```shell
openweather-exporter:
image: billykwooten/openweather-exporter
container_name: openweather-exporter
restart: always
ports:
- "9091:9091"
environment:
- OW_CITY=Bonn, DE
- OW_APIKEY=mi4o2n54i0510n4510
```
3.
Erweiterung der prometheus.yml
```
shell
sudo
nano prometheus/prometheus.yml
```
Am Ende des Dokuments folgendes Eintragen:
```shell
- job_name: 'openweather-exporter'
scrape_interval: 60s
static_configs:
- targets: ['openweather-exporter:9091']
```
4.
Neustart des Dockers
```
shell
docker
rm
-f
$(
docker ps
-aq
)
&&
docker-compose up
-d
```
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