Grafana\Prometheus\Node Exporter Docker install: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „=Ordner Struktur erstellen= *<span style="background:yellow">mkdir -p data/prometheus grafana-lib prometheus </span> =docker-compo…“) Markierung: Ersetzt |
|||
| Zeile 79: | Zeile 79: | ||
=node-exporter= | =node-exporter= | ||
*apt install prometheus-node-exporter | *apt install prometheus-node-exporter | ||
| + | =Grafana= | ||
| + | [[Datei:Grafana-prometheus-1.png]] | ||
| + | |||
| + | [[Datei:Grafana-prometheus-2.png]] | ||
| + | |||
| + | [[Datei:Grafana-prometheus-3.png]] | ||
| + | |||
| + | [[Datei:Grafana-prometheus-4.png]] | ||
| + | |||
| + | [[Datei:Grafana-prometheus-5.png]] | ||
| + | |||
| + | [[Datei:Grafana-prometheus-6.png]] | ||
Version vom 23. November 2021, 18:39 Uhr
Ordner Struktur erstellen
- mkdir -p data/prometheus grafana-lib prometheus
docker-compose.yml
version: "3"
networks:
monitor-net:
driver: bridge
services:
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- "./grafana-lib:/var/lib/grafana"
# - "./grafana-etc:/etc/grafana"
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel, michaeldmoore-multistat-panel, briangann-datatable-panel, grafana-worldmap-panel, grafana-piechart-panel
user: "472"
networks:
- monitor-net
prometheus:
image: prom/prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
ports:
- 9090:9090
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--web.enable-admin-api'
networks:
- monitor-net
prometheus.yml
- vi prometheus/prometheus.yml
# my global config
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
# scrape_timeout is set to the global default (10s).
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'my-ext'
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
- 'alert.rules'
# - "first.rules"
# - "second.rules"
# alert
alerting:
# alertmanagers:
# - scheme: http
# static_configs:
# - targets:
# - "alertmanager:9093"
scrape_configs:
- job_name: kali
static_configs:
- targets: ['10.0.10.101:9100']
docker container starten
- docker-compose up -d
node-exporter
- apt install prometheus-node-exporter




