In this guide from the OrcaCore Website, you will learn How To Install Grafana on AlmaLinux 9.
According to GrafanaLabs, Grafana is an open-source visualization and analytics software. No matter where your data is stored, it can be queried, visualized, and explored. In plain English, it provides you with tools to turn your time-series database (TSDB) data into beautiful graphs and visualizations.
A Grafana dashboard supports multiple panels in a single grid. You can visualize results from multiple data sources simultaneously. It is a powerful open-source analytical and visualization tool that consists of multiple individual panels arranged in a grid. The panels interact with configured data sources including (but not limited to) AWS CloudWatch, Microsoft SQL server, Prometheus, MySQL, InfluxDB, and many others.
Steps To Install Grafana on AlmaLinux 9
To complete this guide, you must log in to your server as a non-root user with sudo privileges and set up a basic firewall. To do this, you can follow our guide the Initial Server Setup with AlmaLinux 9.
Set up Grafana on AlmaLinux 9
Update your local package index with the following command:
sudo dnf update
You can install Grafana in a few ways on your server. In this guide, you will learn to install Grafana by using an RPM package.
First, visit the Grafana Downloads page and get the package with the command below:
sudo wget https://dl.grafana.com/oss/release/grafana-VERSION.x86_64.rpm
At the current time, the latest version of Grafana is 9.1.6.
sudo wget https://dl.grafana.com/oss/release/grafana-9.1.6-1.x86_64.rpm
Then, use the following command to install Grafana:
sudo dnf install grafana-9.1.6-1.x86_64.rpm
Once the installation is complete, reload the system daemon with the command:
sudo systemctl daemon-reload
Now start and enable the Grafana service by running the commands below:
# sudo systemctl start grafana-server # sudo systemctl enable grafana-server
Verify your Grafana service is active and running on AlmaLinux 9:
sudo systemctl status grafana-server
Output ● grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; v> Active: active (running) since Thu 2022-09-22 04:09:53 EDT; 11s ago Docs: http://docs.grafana.org Main PID: 5010 (grafana-server) Tasks: 7 (limit: 23609) Memory: 39.7M CPU: 942ms CGroup: /system.slice/grafana-server.service └─5010 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini
Configure Firewall For Grafana
The Grafana server listens on port 3000 by default, you can verify this with the command below:
sudo ss -plunt|grep grafana
Output tcp LISTEN 0 4096 *:3000 *:* users:(("grafana-server",pid=5010,fd=8))
At this point, you need to allow traffic for Grafana on port 3000 through the firewall on AlmaLinux 98. To do this, run the following command:
sudo firewall-cmd --add-port=3000/tcp --permanent
Now reload the firewall to apply the new rules:
sudo firewall-cmd --reload
Note: You can customize Grafana by editing the configuration file at /etc/grafana/grafana.ini to suit your preference.
Access Grafana Web Console
At this step, you can access the Grafana web interface on ALmaLinux 9 by typing your server’s IP address in your web browser followed by 3000:
You will see the Grafana login screen. At this window, enter admin for the username and password and click Log in.
Then, change the default password of Grafana and click submit.
At this point, you will see the Grafana welcome dashboard screen:
Using Grafana for your analytics addresses several of the issues associated with data-driven DevOps. Collected data often goes unused if it’s inconsistent, scattered across different platforms, or too complex for team members that aren’t data specialists to query. Grafana unifies all your data into one platform that also gives you the tools to explore events and build useful visualizations.
At this point, you have learned to Install Grafana on AlmaLinux 9.
Hope you enjoy it.
For more guides and articles, you can visit Linux Tutorials.