Panduan
RHEL/CentOS/Rocky
- 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
-
Pasang grafana
- yum
sudo yum install -y grafana
- dnf
sudo dnf install -y grafana
-
Jalankan dan aktifkan servis grafana
sudo systemctl daemon-reload
sudo systemctl enable --now grafana-server
Debian/Ubuntu
- 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
- Pasang grafana
sudo apt update
sudo apt install -y grafana
- Jalankan dan aktifkan servis grafana
sudo systemctl daemon-reload
sudo systemctl enable --now grafana