Wiki source code of Grafana Monitoring Stack
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = Grafana Monitoring Stack =Dokumentation des zentralen Monitoring-Systems basierend auf Grafana, InfluxDB und Telegraf.== ��bersicht ==|=Komponente|=Server|=Port|=Funktion|Grafana|Raspberry Pi (192.168.10.19)|3000|Visualisierung|InfluxDB|miroobserv (192.168.10.166)|8086|Zeitreihendatenbank|Telegraf|Mehrere Server|���|Metrik-Sammlung== Architektur =={{code language="none"}}��������������������������������������������������������� ��������������������������������������������������������� ������������������������������������������������������������ clawd ��� ��� miroobserv ��� ��� server-tech-pi ������ (192.168.10.75) ��� ��� (192.168.10.166)��� ��� (192.168.10.19) ������ ��� ��� ��� ��� ������ ��������������������������������������������� ��� ��� ��������������������������������������������� ��� ��� ��������������������������������������������� ������ ��� Telegraf ��� ��� ��� ��� Telegraf ��� ��� ��� ��� Telegraf ��� ������ ��������������������������������������������� ��� ��� ��������������������������������������������� ��� ��� ��������������������������������������������� ������������������������������������������������������������ ��������������������������������������������������������� ��������������������������������������������������������� ��� ��� ��� ��� ��������������������������������������������������������������������������������������������������������������������������������� ��� ��� ��� ��� ��� ��� ������������������������������������������������������������������������������������ ��� InfluxDB ��� ��� (192.168.10.166:8086) ��� ��� ������������������������������������������������������������������������ ��� ��� ��� netapp ��� monitoring��� ��� ��� ��� DB ��� DB ��� ��� ��� ������������������������������������������������������������������������ ��� ������������������������������������������������������������������������������������ ��� ��� ������������������������������������������������������������������������������������ ��� Grafana ��� ��� (192.168.10.19:3000) ��� ������������������������������������������������������������������������������������{{/code}}== InfluxDB ===== Zugang ===* **URL:** http://192.168.10.166:8086* **User:** admin* **Databases:**** {{code}}netapp{{/code}} ��� SANtricity/NetApp Metriken** {{code}}monitoring{{/code}} ��� System/Docker Metriken=== Datenbanken erstellen ==={{code language="bash"}}docker exec -it influxdb influx -username admin -password ***> CREATE DATABASE netapp> CREATE DATABASE monitoring> SHOW DATABASES{{/code}}== Telegraf Konfiguration ===== clawd (192.168.10.75) ===**Pfad:** {{code}}/etc/telegraf/telegraf.conf{{/code}}**Installation (Ubuntu 25.04):**{{code language="bash"}}# Repo zu neu, manuell installierenwget https://dl.influxdata.com/telegraf/releases/telegraf_1.29.2-1_amd64.debsudo dpkg -i telegraf_1.29.2-1_amd64.deb{{/code}}**Gesammelte Metriken:*** CPU, Memory, Disk, Network* System-Info, Processes**Output-Konfiguration:**{{code language="toml"}}[[outputs.influxdb]] urls = ["http://192.168.10.166:8086"] database = "monitoring" username = "admin" password = "***"{{/code}}=== server-tech-pi (192.168.10.19) ===**Pfad:** {{code}}/etc/telegraf/telegraf.conf{{/code}}**Installation (Raspbian Bullseye):**{{code language="bash"}}# ��ber apt (armhf)curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -echo "deb https://repos.influxdata.com/debian bullseye stable" | sudo tee /etc/apt/sources.list.d/influxdb.listsudo apt updatesudo apt install telegraf{{/code}}**Gesammelte Metriken:*** CPU, Memory, Disk, Network* System-Info, Processes* Docker Container Stats**Docker-Metriken aktivieren:**{{code language="bash"}}sudo usermod -aG docker telegrafsudo systemctl restart telegraf{{/code}}=== miroobserv (192.168.10.166) ===**Pfad:** {{code}}/home/jarvis/santricity/telegraf.conf{{/code}}L��uft als Docker-Container (siehe [[NetApp E-Series SANtricity Monitoring]])**Gesammelte Metriken:*** System + Docker Metriken ��� {{code}}monitoring{{/code}} DB* SANtricity Daten ��� {{code}}netapp{{/code}} DB* Ping-Checks zu: 192.168.10.1, .19, .44, .75, 11.12.10.131== Grafana ===== Zugang ===* **URL:** http://192.168.10.19:3000* **API Key:** (siehe TOOLS.md)* **Version:** 10.4.2=== Datasources ===|=Name|=UID|=Database|=URL|influxdb|edx37bthgt1c0d|netapp|http://192.168.10.166:8086|InfluxDB-Monitoring|bfbpi9apv356of|monitoring|http://192.168.10.166:8086=== Dashboards ===|=Dashboard|=Pfad|=Beschreibung|NetApp E-Series Monitor|/d/cfbomjapuiry8a|Storage-��berwachung|System und Docker Monitoring|/d/afbpiat2h1vr4f|Server-Metriken=== Datasource per API hinzuf��gen ==={{code language="bash"}}curl -X POST http://192.168.10.19:3000/api/datasources \ -H "Authorization: Bearer glsa_omzaZvF4EIKT2u3nDNGAmNdXqLS6slBa_e0513d28" \ -H "Content-Type: application/json" \ -d '{ "name": "InfluxDB-Monitoring", "type": "influxdb", "url": "http://192.168.10.166:8086", "database": "monitoring", "user": "admin", "secureJsonData": {"password": "***"}, "access": "proxy" }'{{/code}}== Service Management ===== Telegraf ==={{code language="bash"}}# Statussudo systemctl status telegraf# Logssudo journalctl -u telegraf -f# Config Testtelegraf --config /etc/telegraf/telegraf.conf --test# Neustartsudo systemctl restart telegraf{{/code}}=== Docker Container (miroobserv) ==={{code language="bash"}}ssh jarvis@192.168.10.166cd /home/jarvis/santricity# Statusdocker compose ps# Logsdocker compose logs -f telegrafdocker compose logs -f influxdb# Neustartdocker compose restart{{/code}}== Troubleshooting ===== Keine Daten in Grafana ===1. Telegraf l��uft?{{code language="bash"}}systemctl status telegraf{{/code}}2. InfluxDB erreichbar?{{code language="bash"}}curl http://192.168.10.166:8086/ping{{/code}}3. Daten in InfluxDB?{{code language="bash"}}docker exec -it influxdb influx -username admin -password ***> use monitoring> SHOW MEASUREMENTS> SELECT * FROM cpu ORDER BY time DESC LIMIT 5{{/code}}=== Grafana Datasource Test ===Im Grafana UI: Configuration ��� Data Sources ��� [Datasource] ��� "Save und Test"== Docker auf Raspberry Pi ==**Wichtig:** ARM-Architektur! Nur ARM-kompatible Images verwenden.**Laufende Container (server-tech-pi):*** grafana* vaultwarden* dns-server* synapse-admin* portainer----//Dokumentiert von JARVIS am 2026-02-02// |