Zurück zu Raspberry Pi
Monitoring Profi

Monitoring: Grafana & Prometheus

Professionelle Dashboards für Systemmetriken — CPU, RAM, Temperatur, Netzwerk live überwachen.

Überblick

  • Prometheus: Sammelt Metriken (Zeitreihen-Datenbank)
  • node_exporter: Stellt System-Metriken bereit (CPU, RAM, Disk, Netzwerk)
  • Grafana: Visualisiert die Daten als Dashboards

node_exporter installieren

sudo apt install prometheus-node-exporter -y
sudo systemctl enable --now prometheus-node-exporter

Metriken unter http://IP:9100/metrics abrufbar.

Prometheus installieren

sudo apt install prometheus -y

In /etc/prometheus/prometheus.yml Targets konfigurieren:

scrape_configs:
  - job_name: 'node'
    static_configs:
      - targets: ['localhost:9100']

Grafana installieren

sudo apt install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_10.2.0_armhf.deb
sudo dpkg -i grafana_*.deb
sudo systemctl enable --now grafana-server

Web-Interface: http://IP:3000 (Standard: admin / admin).

Dashboard einrichten

  1. Datenquelle hinzufügen: Prometheus → URL: http://localhost:9090
  2. Dashboard importieren: ID 1860 (Node Exporter Full)

Dashboard-ID 1860 ist das beliebteste Node-Exporter-Dashboard — zeigt alles Wichtige auf einen Blick.