Panduan

RHEL/CentOS/Rocky

  1. Menyiapkan repository grafana
sudo bash -c 'cat<<EOF > /etc/yum.repos.d/grafana.repo
[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
EOF
  1. Pasang grafana

    • yum
    sudo yum install -y grafana
    
    • dnf
    sudo dnf install -y grafana
    
  2. Jalankan dan aktifkan servis grafana

sudo systemctl daemon-reload
sudo systemctl enable --now grafana-server

Debian/Ubuntu

  1. Menyiapkan repository grafana
# Menambahkan gpg key
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -

# Pasang repo
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
  1. Pasang grafana
sudo apt update
sudo apt install -y grafana
  1. Jalankan dan aktifkan servis grafana
sudo systemctl daemon-reload
sudo systemctl enable --now grafana

Referensi