2.01 Grafana Installation - MartinWong06/grafana GitHub Wiki

Prepare a Ubuntu Image - 20.04 LTS version or 22.04 LTS version

Install necessary library

sudo apt-get install -y apt-transport-https software-properties-common wget
sudo wget -q -O/usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key

Add this repository for stable releases

echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com/ stable main" |sudo tee -a /etc/apt/sources.list.d/grafana.list

Repository Update

sudo apt-get update

Install the latest Grafana OSS release:

sudo apt-get install grafana

Start the server

sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server

Configure the Grafana server to start at boot

sudo systemctl enable grafana-server.service

Check Grafana Version

grafana-server -version
⚠️ **GitHub.com Fallback** ⚠️