
Grafana is a great open-source data visualization and monitoring tool that can be installed on Rocky Linux 8. It has a wide variety of features that make it perfect for monitoring your server performance and activity.
With Grafana, you can quickly see which services are running on your server and how they’re performing. You can also see detailed information about CPU usage, memory usage, and disk space usage so you can keep your server running smoothly.
This guide explains how to install Grafana on Rocky Linux 8.
The default Rocky Linux Repository does not contain Grafana. The first step is to add the Grafana RPM repository. Open a new repo file named grafana.repo using your preferred text editor.
Populate the grafana.repo file with the following lines. Save and close the file.
Update the system packages so that all the changes take effect.
Run the repolist command below to verify that the Grafana repo is listed.
Install Grafana by running the command below.
Start, stop, and restart the Grafana service on your server. Grafana provides a systemd unit file that makes it easy to manage the service from the command line.
At this point, your Grafana server is running. Check the status of the service to make sure that everything is working correctly.
Enable the Grafana service to start automatically during boot.
Open the port in your firewall so you can access Grafana from another device. The process depends upon which software is running on your Linux server. This demo uses the firewalld firewall.
By default, grafana listens on port 3000. Ensure that your grafana service listens on port 3000.
Note: If you already have another app that uses the 3000 port, you will get an empty output from your Grafana server. You will need to change the http_port = 3000 value in the usr/share/grafana/conf/defaults.ini file to something else, such as 3001. Then restart the Grafana service.
Open port 3000 and allow the Grafana service through your firewall.
Reload the firewall to apply all of the new changes.
Finally, verify that the 3000 port has been opened.
public (active) target: default icmp-block-inversion: no interfaces: eth0 eth1 sources: services: cockpit dhcpv6-client ssh ports: 3000/tcp
Now that everything is configured, it's time to access Grafana web UI. Open the browser and type the IP address of your Grafana server followed by:3000 to access Grafana Web UI.
For example, if your Grafana server IP address is 192.168.1.100, then visits:
On the login screen, provide the default username and password to access the Grafana dashboard.
Click Log in.
On the next screen, provide a secure password for the Grafana dashboard. Click Submit.
After successfully logging in, you will get the Grafana Dashboard. You can now add data sources and visualize data.
You have successfully installed Grafana on Rocky Linux 8 and configured your firewall to allow access. At this point, you can create as many dashboards as you need and use Grafana as your visualization platform.
Please refer to the official documentation for more information.
0 Comments
Be the first to comment and share your perspective with the community.