Skip to content

Installation von Grafana und Prometheus auf Ubuntu 24.04

Cloud Infrastructure Expert
Installation von Grafana und Prometheus auf Ubuntu 24.04

 

 

In diesem Tutorial führen wir Sie durch die Installation von Grafana und Prometheus auf Ihrem Ubuntu 24.04 VPS-Server. Grafana ist ein leistungsfähiges Open-Source-Tool zur Visualisierung und Analyse von Metriken, während Prometheus ein Open-Source-Monitoring- und Alerting-Toolkit ist. Zusammen bieten sie eine umfassende Lösung zur Überwachung und Analyse Ihrer System- und Anwendungsleistung.

Schritt 1: Prometheus installieren

  1. Fügen Sie das Prometheus-Repository hinzu:

    sudo apt update
    sudo apt install -y curl gnupg2 software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    sudo apt update
  2. Installieren Sie Prometheus:

    sudo apt install prometheus -y
  3. Starten und aktivieren Sie den Prometheus-Dienst:

    sudo systemctl start prometheus
    sudo systemctl enable prometheus
  4. Überprüfen Sie den Status von Prometheus:

    sudo systemctl status prometheus

Schritt 2: Grafana installieren

  1. Fügen Sie das Grafana-Repository hinzu:

    sudo apt-get install -y adduser libfontconfig1
    wget https://dl.grafana.com/oss/release/grafana_10.1.0_amd64.deb
    sudo dpkg -i grafana_10.1.0_amd64.deb
  2. Starten und aktivieren Sie den Grafana-Dienst:

    sudo systemctl daemon-reload
    sudo systemctl start grafana-server
    sudo systemctl enable grafana-server
  3. Überprüfen Sie den Status von Grafana:

    sudo systemctl status grafana-server

Schritt 3: Prometheus als Datenquelle in Grafana hinzufügen

  1. Öffnen Sie Ihren Webbrowser und navigieren Sie zu http://Ihre_Server_IP:3000. Melden Sie sich mit dem Standardbenutzernamen admin und dem Passwort admin an.

  2. Klicken Sie im linken Menü auf “Configuration” (Zahnradsymbol) und dann auf “Data Sources”.

  3. Klicken Sie auf “Add data source” und wählen Sie “Prometheus” aus.

  4. Geben Sie im Feld “URL” die Adresse http://localhost:9090 ein.

  5. Klicken Sie auf “Save & Test”.

Abschluss

Sie haben nun erfolgreich Grafana und Prometheus auf Ihrem Ubuntu 24.04 Server installiert und konfiguriert. Sie können nun Grafana verwenden, um die von Prometheus gesammelten Metriken zu visualisieren und zu analysieren.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.