Grafana en Prometheus installeren op Ubuntu 24.04

 

 

Grafana en Prometheus zijn krachtige tools voor het monitoren en visualiseren van metrics. Volg deze stappen om Grafana en Prometheus te installeren op uw VPS-server die draait op Ubuntu 24.04.

Vereisten

  • Een VPS-server die draait op Ubuntu 24.04
  • Root- of sudo-toegang
  • Basiskennis van de opdrachtregel

Stap 1: Update uw systeem

Zorg ervoor dat uw systeem up-to-date is:

sudo apt update && sudo apt upgrade -y

Stap 2: Installeer Prometheus

Maak eerst een gebruiker voor Prometheus:

sudo useradd --no-create-home --shell /bin/false prometheus

Maak de benodigde mappen aan:

sudo mkdir /etc/prometheus
sudo mkdir /var/lib/prometheus

Download de laatste versie van Prometheus:

wget https://github.com/prometheus/prometheus/releases/latest/download/prometheus-*.tar.gz

Pak het gedownloade bestand uit:

tar xvf prometheus-*.tar.gz

Verplaats de binaire bestanden naar de juiste map:

sudo mv prometheus /usr/local/bin/
sudo mv promtool /usr/local/bin/

Verplaats het configuratiebestand en stel de rechten in:

sudo mv prometheus.yml /etc/prometheus/
sudo chown -R prometheus:prometheus /etc/prometheus
sudo chown -R prometheus:prometheus /var/lib/prometheus

Stap 3: Maak een Prometheus servicebestand

Maak een servicebestand voor Prometheus:

sudo nano /etc/systemd/system/prometheus.service

Voeg de volgende inhoud toe:

[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
    --config.file /etc/prometheus/prometheus.yml \
    --storage.tsdb.path /var/lib/prometheus/ \
    --web.listen-address=:9090

[Install]
WantedBy=multi-user.target

Herlaad de systemd-daemon en start Prometheus:

sudo systemctl daemon-reload
sudo systemctl start prometheus
sudo systemctl enable prometheus

Stap 4: Installeer Grafana

Voeg de Grafana APT-repository toe:

sudo apt install -y software-properties-common
sudo add-apt-repository ppa:grafana/stable

Installeer Grafana:

sudo apt update
sudo apt install grafana

Start en activeer Grafana:

sudo systemctl start grafana-server
sudo systemctl enable grafana-server

Stap 5: Toegang tot Grafana

Open uw webbrowser en ga naar http://your_domain.com:3000. De standaard inloggegevens zijn:

  • Gebruikersnaam: admin
  • Wachtwoord: admin

U wordt gevraagd om het wachtwoord bij de eerste login te wijzigen.

Stap 6: Configureer Prometheus als gegevensbron in Grafana

Eenmaal ingelogd in Grafana, navigeer naar Configuratie > Gegevensbronnen > Voeg gegevensbron toe en selecteer Prometheus. Voer de URL in:

http://localhost:9090

Klik op Opslaan & Testen om de verbinding te verifiëren.

Conclusie

U heeft Grafana en Prometheus succesvol geïnstalleerd op uw Ubuntu 24.04 VPS-server. U kunt nu beginnen met het monitoren van uw applicaties!



Windows VPS

Windows VPS UK

Windows VPS

VPS Windows

Serwer VPS Windows

VPS Windows Deutschland

Windows VPS Hosting

VPS Windows España

Windows VPS Nederland

VPS Windows Italia

VPS Windows Portugal

VPS Windows Россия

VPS Windows Украина

VPS Windows 日本

VPS Windows Sverige

VPS Windows Norge

VPS Windows عربى

VPS Windows Türkiye

Remote Desktop Services (RDS)

RDS CAL (Client Access License)

Remote Desktop VPS

Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting

#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds

vps windows
  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

Boost Your Ubuntu System's Performance with a Swap File: A Step-by-Step Guide

What is a Swap File? A swap file in Ubuntu serves as dedicated virtual memory on your hard...

How to Migrate ISPConfig 2, ISPConfig 3.x, Confixx, CPanel or Plesk to ISPConfig 3.2 (single server)

Introduction Migration from other control panels like ISPConfig 2, ISPConfig 3.x, Confixx,...

How to Install and Configure Zabbix Server and Client on Rocky Linux 9

Introduction Zabbix is an open-source monitoring solution that provides real-time...

How to Install CockroachDB Cluster on Debian 12

Introduction CockroachDB is a distributed SQL database built to handle large-scale,...

How to Install Joomla with Apache and Let's Encrypt SSL on AlmaLinux 9

Introduction Joomla is a popular open-source content management system (CMS) used to build...