infrastructure:monitoring
Differences
This shows you the differences between two versions of the page.
| infrastructure:monitoring [2026/02/07 09:02] – Created monitoring documentation admin | infrastructure:monitoring [2026/02/07 10:39] (current) – Simplified admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Monitoring | + | ====== Monitoring ====== |
| - | Container | + | Prometheus + Grafana on CT 115 (10.100.161.115) |
| - | + | ||
| - | ===== Zugang ===== | + | |
| * **Grafana: | * **Grafana: | ||
| - | * **Prometheus: | + | * **Prometheus: |
| - | * **Credentials: | + | |
| - | + | ||
| - | ===== Komponenten ===== | + | |
| - | + | ||
| - | ^ Service ^ Port ^ Pfad ^ | + | |
| - | | Prometheus | 9090 | / | + | |
| - | | Grafana | 3000 | / | + | |
| - | | node_exporter | 9100 | / | + | |
| - | + | ||
| - | ===== Prometheus Config ===== | + | |
| - | + | ||
| - | <code yaml / | + | |
| - | global: | + | |
| - | scrape_interval: | + | |
| - | + | ||
| - | scrape_configs: | + | |
| - | - job_name: ' | + | |
| - | static_configs: | + | |
| - | - targets: [' | + | |
| - | + | ||
| - | - job_name: ' | + | |
| - | static_configs: | + | |
| - | - targets: [' | + | |
| - | labels: {instance: prometheus} | + | |
| - | - targets: [' | + | |
| - | labels: {instance: openclaw} | + | |
| - | # ... weitere Hosts | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Scrape Targets ===== | + | |
| - | + | ||
| - | ^ Host ^ IP ^ Port ^ | + | |
| - | | prometheus | 10.100.161.115 | 9100 | | + | |
| - | | openclaw | 10.100.160.249 | 9100 | | + | |
| - | | n8n | 10.100.161.111 | 9100 | | + | |
| - | | vaultwarden | 10.100.161.112 | 9100 | | + | |
| - | | postgres | 10.100.161.110 | 9100 | | + | |
| - | | dokuwiki | 10.100.161.113 | 9100 | | + | |
| - | | uptime-kuma | 10.100.161.114 | 9100 | | + | |
| - | | traefik | 10.100.161.102 | 9100 | | + | |
| - | | hv-04 | 10.100.160.100 | 9100 | | + | |
| - | + | ||
| - | ===== node_exporter Installation ===== | + | |
| - | + | ||
| - | Auf allen Hosts via Ansible installiert: | + | |
| - | + | ||
| - | <code bash> | + | |
| - | cd / | + | |
| - | ansible-playbook site.yml --limit automation_stack | + | |
| - | </ | + | |
| - | + | ||
| - | Manuell: | + | |
| - | <code bash> | + | |
| - | # Download | + | |
| - | wget https:// | + | |
| - | tar xzf node_exporter-1.7.0.linux-amd64.tar.gz | + | |
| - | cp node_exporter-1.7.0.linux-amd64/ | + | |
| - | + | ||
| - | # Service | + | |
| - | cat > / | + | |
| - | [Unit] | + | |
| - | Description=Prometheus Node Exporter | + | |
| - | After=network.target | + | |
| - | + | ||
| - | [Service] | + | |
| - | User=node_exporter | + | |
| - | ExecStart=/ | + | |
| - | Restart=always | + | |
| - | + | ||
| - | [Install] | + | |
| - | WantedBy=multi-user.target | + | |
| - | EOF | + | |
| - | + | ||
| - | useradd -rs /bin/false node_exporter | + | |
| - | systemctl daemon-reload | + | |
| - | systemctl enable --now node_exporter | + | |
| - | </ | + | |
| - | ===== Empfohlene Dashboards | + | ===== Targets |
| - | * **Node Exporter Full** (ID: 1860) — Umfassende Host-Metriken | + | All hosts run node_exporter on port 9100. |
| - | * **Node Exporter** (ID: 11074) — Kompakte Übersicht | + | |
| - | Import via Grafana: Dashboards → Import → ID eingeben | + | ^ Host ^ IP ^ |
| + | | prometheus | 10.100.161.115 | | ||
| + | | openclaw | 10.100.160.249 | | ||
| + | | n8n | 10.100.161.111 | | ||
| + | | vaultwarden | 10.100.161.112 | | ||
| + | | postgres | 10.100.161.110 | | ||
| + | | dokuwiki | 10.100.161.113 | | ||
| + | | uptime-kuma | 10.100.161.114 | | ||
| + | | traefik | 10.100.161.102 | | ||
| + | | hv-04 | 10.100.160.100 | | ||
| - | ---- | + | ===== Dashboards ===== |
| - | //Erstellt: 2026-02-07// | + | Import via Grafana: **Node Exporter Full** (ID: 1860) |
infrastructure/monitoring.1770454958.txt.gz · Last modified: by admin
