Install Grafana on Centos7

1. Goal

Install and deploy Grafana 6.7.2-1 on Centos 7.6, learn how to search for plug-ins and install plug-ins on the command line. ( No pit version )

Second, the platform

[[email protected] ~]# uname -a
Linux client 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
grafana-6.7.2-1

3. Preface

1. Grafana official website https://grafana.com/
2. Grafana package download page and installation method https://grafana.com/grafana/download
3. Grafana default port number: 3000

Fourth, download and install Grafana on centos7

1. Basic operation, turn off centos firewall and selinux

systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

2. Download the rpm package of Grafana (a total of 61M, online download may take 1 hour)

wget https://dl.grafana.com/oss/release/grafana-6.7.2-1.x86_64.rpm

3. Underwear Grafana

 yum install grafana-6.7.2-1.x86_64.rpm

4. Start grafana and set it to start automatically after booting

systemctl restart grafana-server
systemctl enable grafana-server

5. View the installed grafana version number

grafana-cli -version

Five, install plug-ins for Grafana online

Take the zabbix plugin as an example.

1. Search the list of Grafana plugins online

grafana-cli plugins list-remote

2. Search Zabbix plugin online

grafana-cli plugins list-remote |grep zabbix

 

3. Install Grafana's zabbix plugin

grafana-cli plugins install alexanderzobnin-zabbix-app

4. Restart the Grafana service to make the installed plug-in take effect

systemctl restart grafana-server

5. (Reference) View the list of installed plugins for Grafana

grafana-cli plugins ls

6. (Reference) Grafana command help

grafana-cli is followed by --help, or after any second and third level commands, it can be followed by --help. Help is very useful.

Six, open Grafana using the web method

1. The browser opens the 3000 port of the server, such as: http://192.168.0.68:3000/

2. Log in to Grafana, the default user name and default password of Grafana are both admin

3. Check which plugins are installed on the grafana web,
click the gear-shaped icon "Configuration"---"Plugins" on the left

4. Enable the zabbix plugin just installed on the Grafana webpage

Then do 3, click the target plug-in you see, and then click the [Enable] button.
(Only the grafana plug-in that has been enabled manually can be used normally)

------------------END----------------Dry this bowl of chicken soup: only those who dare to set sail to meet the bad waves Only those who can win upstream! ----------------

Old iron double-click 666

Guess you like

Origin blog.csdn.net/xoofly/article/details/105435656