• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install Grafana On Centos7.6

  • 00:45 sestatus
  • 01:02 vim /etc/yum.repos.d/grafana.repo
  • 01:31 yum install grafana -y
  • 02:10 yum install fontconfig freetype* urw-fonts -y
  • 02:40 systemctl daemon-reload
  • 02:53 systemctl start grafana-server.service
  • 03:09 systemctl status grafana-server.service
{{postValue.id}}

How to Install Grafana On Centos 7.6

Grafana is open source visualization and analytic software. You can query, visualize, alert on, and explore your metric with Grafana easily. It helps you create graphs and visualizers out of your time-series database (TSDB). In this tutorial we explain about installing Grafana on CentOS 7.6

Installation process:

To install Grafana need to disable selinux

[root@linuxhelp ~]# sestatus
SELinux status:                 disabled

For installing Grafana you need to add grafana repository in yum repo. Run the following command to do the same.

[root@linuxhelp ~]# vim /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

And then install Grafana by using the following command

[root@linuxhelp ~]# yum install grafana -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
grafana/signature                                                           |  488 B  00:00:00     
Retrieving key from https://packages.grafana.com/gpg.key
Importing GPG key 0x24098CB6:
 Userid     : "Grafana <info@grafana.com>"
 Fingerprint: 4e40 ddf6 d76e 284a 4a67 80e4 8c8c 34c5 2409 8cb6
 From       : https://packages.grafana.com/gpg.key
grafana/signature                                                           | 2.9 kB  00:00:00 !!! 
grafana/primary_db                                                          |  73 kB  00:00:01     
Resolving Dependencies
--> Running transaction check
---> Package grafana.x86_64 0:7.1.1-1 will be installed
--> Finished Dependency Resolution
.
.
.
  Verifying  : grafana-7.1.1-1.x86_64                                                          1/1 

Installed:
  grafana.x86_64 0:7.1.1-1                                                                         

Complete!

Once it is done, you need to install the additional font package. Run the following command for the same.

[root@linuxhelp ~]# yum install fontconfig freetype* urw-fonts -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Package fontconfig-2.13.0-4.3.el7.x86_64 already installed and latest version
Package freetype-2.8-14.el7.x86_64 already installed and latest version
Package urw-fonts-2.4-16.el7.noarch is obsoleted by urw-base35-fonts-20170801-10.el7.noarch which is already installed
Resolving Dependencies
--> Running transaction check
.
.
.
Installed:
  freetype-demos.x86_64 0:2.8-14.el7               freetype-devel.x86_64 0:2.8-14.el7              

Dependency Installed:
  libpng-devel.x86_64 2:1.5.13-7.el7_2               zlib-devel.x86_64 0:1.2.7-18.el7              

Complete!

And then reload the daemon service with the below mentioned command.

[root@linuxhelp ~]# systemctl daemon-reload

Start the Grafana service

[root@linuxhelp ~]# systemctl start grafana-server.service

Check the status of Grafana as follows.

[root@linuxhelp ~]# systemctl status grafana-server.service
● grafana-server.service - Grafana instance
   Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-07-28 15:36:53 IST; 23s ago
     Docs: http://docs.grafana.org
 Main PID: 56932 (grafana-server)
    Tasks: 8
   CGroup: /system.slice/grafana-server.service
           └─56932 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run...

Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Exec...n"
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Exec...n"
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Exec...e"
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Exec...y"
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Crea...in
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Star...ns
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Regi...t"
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="Exte...ns
Jul 28 15:36:53 linuxhelp systemd[1]: Started Grafana instance.
Jul 28 15:36:53 linuxhelp grafana-server[56932]: t=2020-07-28T15:36:53+0530 lvl=info msg="HTTP...t=
Hint: Some lines were ellipsized, use -l to show in full.

Once the above procedure is completed, go to browser and enter the IP address and port number. snap1 This is the welcome page of Grafana. The default username is admin, password: admin snap2 Change new password snap3 This is the dashboard of Grafana snap4 This the option to add pulings in Grafana snap5

With this the installation of Grafana on CentOS 7.6 comes to end.

Tags:
elijah
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Grafana on CentOS?

A

Grafana is open source data visualization and tracking suite. It supports databases such as Graphite, Elasticsearch, Included, Prometheus etc. The application has a metric analytics, with the capability to control and create your own dashboard to your own apps or infrastructure performance monitoring.

Q

What are the platforms it can support?

A

It can support for Windows, Mac and almost every Linux distribution.

Q

Is there any Alternative for Grafana?

A

The alternatives are,
Datadog,
Kibana,
Redash,
freeboard,
Prometheus,
Graphite, etc.,

Q

How do I delete a dashboard?

A

Click that dashboard page's jag,then bottom will have an item "delete dashboard"

Q

How do I use the second y axis? secondYAxis function does not work

A

You can switch any series to the second y-axis by clicking on the colored line to the left of the series name in the legend below the graph. Alternatively, use the "Display Styles" > "Series Specify

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaac ?
How to run windows application in linux

I need to run the windows application in my Linux machine, instead of installing from yum repo or any other repos. How to do that..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.