infrastructure:monitoring
This is an old revision of the document!
Table of Contents
Monitoring (Prometheus/Grafana)
Container 115 auf hv-04 — zentrales Monitoring für die Infrastruktur.
Zugang
- Grafana: https://monitoring.home.miskam.xyz
- Prometheus: http://10.100.161.115:9090 (intern)
- Credentials: In Vaultwarden (Network Automation → Grafana Admin)
Komponenten
| Service | Port | Pfad |
|---|---|---|
| Prometheus | 9090 | /usr/local/bin/prometheus |
| Grafana | 3000 | /usr/share/grafana |
| node_exporter | 9100 | /usr/local/bin/node_exporter |
Prometheus Config
- /etc/prometheus/prometheus.yml
global: scrape_interval: 15s scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'node' static_configs: - targets: ['10.100.161.115:9100'] labels: {instance: prometheus} - targets: ['10.100.160.249:9100'] 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:
cd /root/.openclaw/workspace/automation-stack/ansible ansible-playbook site.yml --limit automation_stack
Manuell:
# Download wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz tar xzf node_exporter-1.7.0.linux-amd64.tar.gz cp node_exporter-1.7.0.linux-amd64/node_exporter /usr/local/bin/ # Service cat > /etc/systemd/system/node_exporter.service << EOF [Unit] Description=Prometheus Node Exporter After=network.target [Service] User=node_exporter ExecStart=/usr/local/bin/node_exporter Restart=always [Install] WantedBy=multi-user.target EOF useradd -rs /bin/false node_exporter systemctl daemon-reload systemctl enable --now node_exporter
Empfohlene Dashboards
- Node Exporter Full (ID: 1860) — Umfassende Host-Metriken
- Node Exporter (ID: 11074) — Kompakte Übersicht
Import via Grafana: Dashboards → Import → ID eingeben
Erstellt: 2026-02-07
infrastructure/monitoring.1770454958.txt.gz · Last modified: by admin
