Wednesday, 6 July 2022

How to Install Grafana 9 Monitoring tool on CentOS 7



Grafana is a power full software for real time system data monitoring also generate graph and dashboard for easy understanding. It is available in community and enterprise editions.

This article describes How to Install Grafana9 on CentOS 7
 
Step 1. Enable Grafana Repository: Run the following command to configure repository for package installation:
 
[root@linuxcnf ~]# vi /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
 
Step 2. Grafana Installation: Run the below command to install Grafana package from its official repository:
 
[root@linuxcnf ~]# yum install grafana -y
Loaded plugins: fastestmirror
……………………..
Installed:
  grafana.x86_64 0:9.0.2-1
 
Dependency Installed:
………………………
 
Complete!
[root@linuxcnf ~]#
 
Step 3. Start Grafana Services: Run the below commands to start services and enable for auto start on across reboot:
 
[root@linuxcnf ~]# systemctl start grafana-server
[root@linuxcnf ~]#
 
[root@linuxcnf ~]# systemctl enable grafana-server
Created symlink from /etc/systemd/system/multi-user.target.wants/grafana-server.service to /usr/lib/systemd/system/grafana-server.service.
[root@linuxcnf ~]#
 
Step 4. Configure Firewall Rules: Run the following command for firewall rules configuration to allow access from other systems:
 
[root@linuxcnf ~]# firewall-cmd --permanent --zone=public --add-port=3000/tcp
success
[root@linuxcnf ~]# firewall-cmd --reload
success
[root@linuxcnf ~]#
 
Step 5. Validate Installation: Now open any web browser and enter the server hostname or IP address and port no. 3000 <hostname/IP address:3000> to access the Grafana dashboard.
 
Done!!! Grafana installation is successfully done on CentOS 7.

No comments:

Post a Comment