Grafana

Grafana is a tool for querying and visualizing time series and metrics.

Official site: http://grafana.org

Installation

This example shows installation on CentOS 7 64-bit virtual machine in june 2016. At that time the actual version of Grafana was 3.0.0

Grafana can be installed from rpm or from yum repo.

To install from rpm, first check for the latest version, then download rpm package or install with command:

$ yum install https://grafanarel.s3.amazonaws.com/builds/grafana-3.0.0-beta51460725904.x86_64.rpm

Another way is to use yum repo to instal Grafana. First create new repo file:

$ vi /etc/yum.repos.d/grafana.repo

[grafana]
name=grafana
baseurl=https://packagecloud.io/grafana/stable/el/6/$basearch
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

Then install Grafana with yum:

$ yum install grafana

Start Grafana

Start Grafana server:

$ 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.

To start Grafana server at boot time:

$ /sbin/chkconfig --add grafana-server

Open Grafana web GUI in browser:

http://hostname:3000

If you have problems accessing Grafana web interface, then you probably need to configure firewall (iptables in CentOS):

$ vi /etc/sysconfig/iptables

Add the following lines:

...
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT
...

Restart the firewall:

$ /sbin/service iptables restart

Web GUI

Open Grafana web GUI in browser:

http://hostname:3000

Login into Grafana (admin/admin).

Add Data Source

Configure InfluxDB Data Source

Create new dashboard and add new graph