Ubuntu 24.04'te Grafana ve Prometheus Kurulumu

 

 

Grafana ve Prometheus, metrikleri izlemek ve görselleştirmek için güçlü araçlardır. Aşağıdaki adımları izleyerek Ubuntu 24.04 çalışan VPS sunucunuza Grafana ve Prometheus'u kurun.

Ön Gereksinimler

  • Ubuntu 24.04 çalışan bir VPS sunucusu
  • Root veya sudo erişimi
  • Temel komut satırı bilgisi

Adım 1: Sistemi Güncelleyin

Sisteminizin güncel olduğundan emin olun:

sudo apt update && sudo apt upgrade -y

Adım 2: Prometheus'u Kurun

Öncelikle, Prometheus için bir kullanıcı oluşturun:

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

Gerekli dizinleri oluşturun:

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

Prometheus'un en son sürümünü indirin:

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

İndirilen dosyayı çıkarın:

tar xvf prometheus-*.tar.gz

İkili dosyaları uygun dizine taşıyın:

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

Yapılandırma dosyasını taşıyın ve izinleri ayarlayın:

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

Adım 3: Prometheus için Bir Servis Dosyası Oluşturun

Prometheus için bir servis dosyası oluşturun:

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

Aşağıdaki içeriği ekleyin:

[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

Systemd daemon'ı yeniden yükleyin ve Prometheus'u başlatın:

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

Adım 4: Grafana'yı Kurun

Grafana APT deposunu ekleyin:

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

Grafana'yı kurun:

sudo apt update
sudo apt install grafana

Grafana'yı başlatın ve etkinleştirin:

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

Adım 5: Grafana'ya Erişin

Web tarayıcınızı açın ve http://your_domain.com:3000 adresine gidin. Varsayılan giriş bilgileri:

  • Kullanıcı adı: admin
  • Parola: admin

İlk girişte parolayı değiştirmeniz istenecektir.

Adım 6: Prometheus'u Grafana'da Veri Kaynağı Olarak Yapılandırın

Grafana'ya giriş yaptıktan sonra Ayarlar > Veri Kaynakları > Veri Kaynağı Ekle kısmına gidin ve Prometheus'u seçin. Aşağıdaki URL'yi girin:

http://localhost:9090

Kaydet ve Test Et butonuna tıklayarak bağlantıyı doğrulayın.

Sonuç

Ubuntu 24.04 VPS sunucunuza Grafana ve Prometheus'u başarıyla kurdunuz. Artık uygulamalarınızı izlemeye başlayabilirsiniz!



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 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

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...