Monday, July 11, 2022

.::: install and configure Grafana on CentOS 7 :::.


A. Install Grafana
1. Disable SELinux

2. Installing Grafana via YUM Repository


[root@nmslinux ~]# cat  /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
[root@nmslinux ~]#

 3. Install Grafana
[root@nmslinux ~]# yum install grafana -y

The Package does the following things:

Installs binary to /usr/sbin/grafana-server
Copies init.d script to /etc/init.d/grafana-server
Installs default file to /etc/sysconfig/grafana-server
Copies configuration file to /etc/grafana/grafana.ini
Installs systemd service (if systemd is available) name grafana-server.service
The default configuration uses a log file at /var/log/grafana/grafana.log

4. Install additional font packages
[root@nmslinux ~]# yum install fontconfig freetype* urw-fonts -y

5. Enable Grafana Service
[root@nmslinux ~]# 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@nmslinux ~]# systemctl start grafana-server
[root@nmslinux ~]#


6. Browse Grafana
http://localhost:3000/


https://www.fosslinux.com/8328/how-to-install-and-configure-grafana-on-centos-7.htm

No comments:

Post a Comment

Popular Posts