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 wgetsudo wget -q -O/usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.keyAdd 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.listRepository Update
sudo apt-get updateInstall the latest Grafana OSS release:
sudo apt-get install grafanaStart the server
sudo systemctl daemon-reloadsudo systemctl start grafana-serversudo systemctl status grafana-serverConfigure the Grafana server to start at boot
sudo systemctl enable grafana-server.serviceCheck Grafana Version
grafana-server -version