Grafana

Installation guide — Vizualise any log or metrics into dashboards

William Donze
2 min readMay 10, 2024

Introduction

In this article we’ll look at how to install Grafana, a tool that allows you to query, visualize, alert on, and understand your metrics no matter where they are stored.

Before you start

In my case, I have a RHEL8 machine at my disposal. If you’re using Ubuntu, it won’t be much different, but you may need to adjust some commands.

Installation

Add the Grafana repository and don’t forget to put exclude=*beta+ at the end to indicate that only stable versions should be installed

vim /etc/yum.repos.d/grafana.repo
[grafana]
name=grafana
baseurl=https://rpm.grafana.com
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://rpm.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
exclude=*beta*

Once the repository has been filled in, install the Loki package

dnf update
dnf install grafana

Enable and start the service

systemctl start grafana-server.service
systemctl enable grafana-server.service

Open port 3000 of the firewall to make Grafana accessible

firewall-cmd --permanent --add-port=3000/tcp
firewall-cmd –-reload

First set up

To configure Grafana, go to http://<ip-of-the-machine>:3000 and enter the default credentials admin : admin

Then set up a new password

Result

Finally, the home dashboard will appear

--

--