Installing Grafana on Centos 8

Grafana is an open source, multi-platform web analytics and interactive visualization application. It provides charts, graphs and alerts for the web when connected to supported data sources, and Grafana Enterprise is also available with additional capabilities.

Add the Grafana repository

$ sudo nano /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

Install Grafana

$ sudo dng -y install grafana

Add the service to startup and start it. Checking the status

$ sudo systemctl daemon-reload
$ sudo systemctl enable --now grafana-server
$ sudo systemctl status grafana-server

Opening port 3000

$ sudo firewall-cmd --add-port=3000/tcp --permanent
$ sudo firewall-cmd --reload

Launch the browser, go to the address http: //% your-ip%: 3000 / and set the admin password.

Further in the admin panel, you can add our Prometheus server

Sidebar