How to install Grafana on CentOS 8

Prerequisites 🧳

$ sudo -l

Install and update 🕹

$ sudo yum update

Add Grafana to local YUM repos 🧰

$ sudo vi /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
$ sudo yum update

Grafana Installation 🛠

$ sudo yum install grafana

Start Grafana 💯

$ sudo systemctl start grafana-server
$ sudo systemctl status grafana-server (check status)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store