How to Install Grafana 6 on CentOS 7 / RHEL 7

How to Install Grafana 6 on CentOS 7 / RHEL 7


In this article i'll demonstrate how to install grafana 6 on CentOS 7 / RHEL 7. Grafana is an open source tool which allows you to query, visualize, alert on abnormalities. In Grafana 6 you'll find new Explore option. A new query focused workflow for ad-hoc data exploration and troubleshooting.


There are several ways to install Grafana it, Let's Discuss them One by One:


Download and Install:


As the name suggest, You need to download the package from the grafana Download Page.
Then Install the Package.


yum install <rpm package url>i.e. yum install https://dl.grafana.com/oss/release/grafana-6.4.2-1.x86_64.rpm

OR 


wget https://dl.grafana.com/oss/release/grafana-6.4.2-1.x86_64.rpmyum localinstall grafana-6.4.2-1.x86_64.rpm


How to Install Grafana 6 on ubuntu / Debian


Install via YUM Repository :


Add the following to a new file at /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

There is a separate repository if you want beta releases.


[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm-beta
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

Then install Grafana via the yum command.


yum install grafana




Start the server (init.d service) : 


You can start Grafana by running:


 service grafana-server start

This will start the grafana-server process as the grafana user, which is created during package installation. The default HTTP port is 3000, and default user and group is admin.

Default login and password admin/ admin

To configure the Grafana server to start at boot time:


/sbin/chkconfig --add grafana-server


Start the server (via systemd):



systemctl daemon-reload
systemctl start grafana-server
systemctl status grafana-server

Enable the systemd service to start at boot


systemctl enable grafana-server.service



Access Grafana Dashboard: 

Once the service has been started, you can access Grafana dashboard at http://[serverip|hostname]:3000



grafana





Grafana handy  Files: 



  1.     Installs binary to /usr/sbin/grafana-server
  2.     Copies init.d script to /etc/init.d/grafana-server
  3.     Installs default file (environment vars) to /etc/sysconfig/grafana-server
  4.     Copies configuration file to /etc/grafana/grafana.ini
  5.     Installs systemd service (if systemd is available) name grafana-server.service
  6.     The default configuration uses a log file at /var/log/grafana/grafana.log
  7.     The default configuration specifies an sqlite3 database at /var/lib/grafana/grafana.db
  8. Environment file /etc/sysconfig/grafana-server -- Here you can override log directory, data directory and other variables.

0 Response to "How to Install Grafana 6 on CentOS 7 / RHEL 7"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel