Learn how to install Grafana dashboard software on Rocky Linux 8. Follow our step-by-step guide to set up Grafana for monitoring and visualizing your system’s performance data effectively. #centlinux #linux #grafana
Grafana is an open-source data visualization and monitoring tool that allows you to create and share dynamic dashboards. It is widely used for monitoring and analyzing system performance, infrastructure metrics, and application analytics. Key features of Grafana include:
Grafana is popular among DevOps teams, system administrators, and data analysts for its powerful visualization capabilities, ease of use, and flexibility in integrating with various data sources. It is commonly used alongside other monitoring tools like Prometheus for comprehensive system and application monitoring.
Kibana and Grafana are both powerful tools used for data visualization and monitoring, but they serve slightly different purposes and have unique features. Here’s a comparison of Kibana vs. Grafana:
Purpose:
Key Features:
Use Cases:
Purpose:
Key Features:
Use Cases:
In summary, the choice between Kibana and Grafana depends on your specific needs and existing infrastructure. If you are primarily working with Elasticsearch and need advanced log analysis and search capabilities, Kibana is the better choice. If you need a flexible and powerful tool for monitoring a wide range of metrics from different sources, Grafana is likely the better option.
Recommended Online Training: Grafana from Beginner to Advanced (3rd Edition)
We are using a minimal Rocky Linux 8 virtual machine with following specifications.
Connect with grafana-01.centlinux.com as root user by using a ssh client.
Execute following command to build cache for installed yum repositories.
# dnf makecache Rocky Linux 8 - AppStream 1.6 kB/s | 4.8 kB 00:02 Rocky Linux 8 - BaseOS 1.7 kB/s | 4.3 kB 00:02 Rocky Linux 8 - Extras 1.8 kB/s | 3.5 kB 00:01 Metadata cache created.
As a best practice, update software packages in your Linux operating system before installing Grafana server.
# dnf update -y Last metadata expiration check: 0:01:52 ago on Sun 20 Feb 2022 08:28:10 PM PKT. Dependencies resolved. Nothing to do. Complete!
Our Linux server is already up-to-date. The result may vary on your operating system.
Check the Linux Kernel and operating system version, being used in this installation guide.
# cat /etc/rocky-release Rocky Linux release 8.5 (Green Obsidian) # uname -r 4.18.0-348.12.2.el8_5.x86_64
Create a .repo file in /etc/yum.repos.d directory by using vim text editor.
# vi /etc/yum.repos.d/grafana.repo
And add following directives in that file.
[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
Build the cache for Grafana yum repository.
# dnf makecache Rocky Linux 8 - AppStream 1.6 kB/s | 4.8 kB 00:02 Rocky Linux 8 - BaseOS 1.2 kB/s | 4.3 kB 00:03 Rocky Linux 8 - Extras 1.6 kB/s | 3.5 kB 00:02 grafana 169 B/s | 454 B 00:02 grafana 1.3 kB/s | 1.7 kB 00:01 Importing GPG key 0x24098CB6: Userid : "Grafana <info@grafana.com>" Fingerprint: 4E40 DDF6 D76E 284A 4A67 80E4 8C8C 34C5 2409 8CB6 From : https://packages.grafana.com/gpg.key Is this ok [y/N]: y grafana 682 kB/s | 8.1 MB 00:12 Metadata cache created.
Since, you have added the Grafana yum repository, you can now easily install this Open Source analytics tool by executing following dnf command.
# dnf install -y grafana
After successful installation of Grafana server, enable and start the network service as follows.
# systemctl enable --now grafana-server Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service.
Check the status of Grafana service.
# systemctl status grafana-server ● grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; ve> Active: active (running) since Sun 2022-02-20 20:41:22 PKT; 6s ago Docs: http://docs.grafana.org Main PID: 1999 (grafana-server) Tasks: 8 (limit: 5808) Memory: 110.5M CGroup: /system.slice/grafana-server.service └─1999 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --> Feb 20 20:41:22 grafana-01.centlinux.com grafana-server[1999]: logger=sqlstore > Feb 20 20:41:22 grafana-01.centlinux.com grafana-server[1999]: logger=plugin.ma> Feb 20 20:41:22 grafana-01.centlinux.com grafana-server[1999]: logger=plugin.fi> Feb 20 20:41:22 grafana-01.centlinux.com systemd[1]: Started Grafana instance. Feb 20 20:41:22 grafana-01.centlinux.com grafana-server[1999]: logger=http.serv>
To make your Grafana server accessible across the network, you have to allow it in your Linux firewall.
# firewall-cmd --permanent --add-service=grafana success # firewall-cmd --reload success
Open URL http://grafana-01.centlinux.com:3000/login in a web browser.
Login by using default Grafana username/password i.e. admin/admin
Set a new strong password for your Grafana admin user.
You have successfully login to Grafana web application.
If you are new to Linux and facing difficulty in working at Linux Bash prompt. We recommend that, you should read The Linux Command Line, 2nd Edition: A Complete Introduction by William Shotts.
In conclusion, installing Grafana on Rocky Linux 8 is a powerful way to enhance your system monitoring and visualization capabilities. By following this guide, you can set up Grafana smoothly and begin leveraging its robust features to gain insights into your system’s performance.
If you need personalized assistance with the installation or configuration of Grafana on your Linux server, I offer professional services on Fiverr. Feel free to check out my Fiverr gig for expert help: Install Grafana Dashboard Software on Rocky Linux 8. I’m here to ensure your setup is optimized and tailored to your specific needs.
Puppy Linux is a fast, lightweight OS designed for speed and simplicity, perfect for old…
Learn how to change Apache document root in Linux by following this step-by-step guide. Adjust…
Discover how to change Apache port in Linux easily. Follow our simple guide to modify…
Learn how to create a virtual host in Apache Server with this comprehensive guide. Set…
Discover 10 practical tasks for the RHCSA exam with step-by-step solutions. Boost your Linux skills…
Discover the ultimate Fail2ban configuration guide. Learn how to set up, customize, and optimize Fail2ban…
This website uses cookies.