Welcome to our guide on how to Install Grafana on Fedora 34/33/32/31/30. Grafana is the leading open source feature-rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus, and InfluxDB. Grafana provides charts, graphs, and alerts for the web when connected to supported data sources.

This tutorial will guide you through the installation of Grafana on Fedora 34/33/32/31/30.

For CentOS / Ubuntu, use:

How to Install Grafana on Ubuntu / Debian

Install Grafana and InfluxDB on CentOS

Install Grafana on Fedora 34/33/32/31/30

Grafana is available from the upstream YUM repository though you can also install it from an RPM package.

Step 1: Add Grafana yum repository:

cat <<EOF | sudo tee /etc/yum.repos.d/grafana.repo

Step 2: Install Grafana on Fedora 34/33/32/31/30

The install Grafana on Fedora by running:

sudo dnf -y install grafana

To start grafana service and enable it to start on boot, run:

sudo systemctl start grafana-server
sudo systemctl enable grafana-server

Confirm service state:

$ sudo systemctl status grafana-server
● grafana-server.service - Grafana instance
   Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-11-21 20:38:08 UTC; 30s ago
     Docs: http://docs.grafana.org
 Main PID: 12041 (grafana-server)
    Tasks: 8 (limit: 1149)
   Memory: 12.5M
   CGroup: /system.slice/grafana-server.service
           └─12041 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.pid>

This will start the grafana-server process as the grafana user, which is created during package installation.

The default HTTP port is 3000. By default Grafana will log to /var/log/grafana.

The default configuration  file is /etc/grafana/grafana.in with sqlite3 database store located at /var/lib/grafana/grafana.db

Open firewall port for Grafana

If you have a running firewalld service, allow port 3000 to access the dashboard from the network.

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

You can access the Grafana web interface on the URL:

http://[Server IP|Hostname]:3000

The default logins are:

username: admin
Password: admin
install grafana fedora 29 fedora 28

Don’t forget to change the admin password after the first login.

Start creating Monitoring Dashboards. We have a series of Monitoring Tutorials with Grafana, InfluxDB, and Prometheus.  Examples are:

Monitoring Ceph Cluster with Prometheus and Grafana

How to Monitor Linux Server Performance with Prometheus and Grafana in 5 minutes

How to Monitor BIND DNS server with Prometheus and Grafana

Monitoring MySQL / MariaDB with Prometheus in five minutes

How to Monitor Redis Server with Prometheus and Grafana in 5 minutes

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here