How to install Grafana on CentOS 8

Manzeel Uprety
2 min readFeb 19, 2022

Grafana is by a wide margin one of the most famous open source dashboard observing devices of 2019. Grafana is a must have for software engineers in need of versatile dashboard checking arrangement.

Grafana can be utilized to screen a wide range of datasources.
It can be integrated with time series information bases like InfluxDB or Prometheus, or to relationnal data sets (MySQL or PostgreSQL).

Prerequisites 🧳

You will need sudo access to install Grafana on CentOS 8. Run the following command:

$ sudo -l

If you have sudo access, you are good to go.

Install and update 🕹

After logging in to your server, it is always advised to update you server before any installation.

$ sudo yum update

The update will take time depending on your last update.

Add Grafana to local YUM repos 🧰

Add the Grafana repositories to local YUM allowed repositories.

You can add a new file named “grafana.repo”, and add the following:

$ 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

Save and Update 🔫

$ sudo yum update

Grafana Installation 🛠

Run the following command to install Grafana

$ sudo yum install grafana

Confirm pressing Y when asked to ✅ You will need to import the gpg key too.

Start Grafana 💯

You can start your Grafana server using the following command

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

If you have made it so far, your Grafana server should be up and running on CentOS 8 🎊

===============================

If you find this post helpful, feel free to buy me a virtual coffee 😉👇🏻

https://ko-fi.com/mnzel1

--

--