Grafana Build - optimize Zabbix graphical display
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/86/F5/wKiom1fPtNHyWRrYAAIUIJ9Xhp8439.jpg "title=" Qq20160907143326.jpg "alt=" Wkiom1fptnhywrryaaiuij9xhp8439.jpg "/>
Official website: http://grafana.org/
Download (: http://down.51cto.com/data/2239764)
[Email protected] ~]# wget https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.1-1470047149.x86_64.rpm
Create a grafana library
Mysql> CREATE DATABASE Grafana character set utf8collate utf8_bin;
Query OK, 1 row Affected (0.00 sec)
mysql> use Grafana;
Database changed
mysql> CREATE TABLE ' session ' (' key ' CHAR (+) not NULL, ' data ' BLOB, ' expiry ' INT (one) UNSIGNED Not NULL, PRIMARY key (' key ')) Engine=myisamdefault Charset=utf8;
Query OK, 0 rows affected (0.02 sec)
Mysql> Grant Allprivileges on grafana.* to [email protected] ' localhost ' identified by ' password ';
Query OK, 0 rows affected (0.03 sec)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/F3/wKioL1fPtXqC_V_yAACu26t8zG0276.png "title=" 1.png " alt= "Wkiol1fptxqc_v_yaacu26t8zg0276.png"/>
2. Installing Granfana
[Email protected] install]# RPM-UVH grafana-3.1.1-1470047149.x86_64.rpm
Warning:grafana-3.1.1-1470047149.x86_64.rpm:header V4 rsa/sha1 Signature, key ID 3dd18bdd:nokey
Preparing ... ########################################### [100%]
1:grafana ########################################### [100%]
# # # Starting Grafana-server By default Onbootup, please execute
Sudo/sbin/chkconfig--add Grafana-server
# # # In order to start Grafana-server, execute
sudo servicegrafana-server start
[Email protected] install]#/sbin/chkconfig--add grafana-server
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/86/F3/wKioL1fPtYfzGkU2AACYv1fmZJ0898.png "title=" 2.png " alt= "Wkiol1fptyfzgku2aacyv1fmzj0898.png"/>
3. Configure Grafanato change the database to MySQL
[Email protected] ~]# Vim/etc/grafana/grafana.ini
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/F5/wKiom1fPtZGANof4AAAiu8Q9_1U447.png "title=" 3.png " alt= "Wkiom1fptzganof4aaaiu8q9_1u447.png"/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/86/F5/wKiom1fPtZygUD8aAAAkSs9yvwM214.png "title=" 4.png " alt= "Wkiom1fptzygud8aaaakss9yvwm214.png"/>
Set the initial administrator account password
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/86/F3/wKioL1fPtafRKs-dAAAU6OEnBow109.png "title=" 5.png " alt= "Wkiol1fptafrks-daaau6oenbow109.png"/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/86/F3/wKioL1fPtbajKP8OAAAw1sqp6mY268.png "title=" 6.png " alt= "Wkiol1fptbajkp8oaaaw1sqp6my268.png"/>
ALLOW_SIGN_UP: Whether to allow normal users to log on, if set to false, the user is forbidden to log on, the default is true
Allow_org_create: If set to false, prevents user from creating new organization, default is true
auto_assign_org: When set to true , new users are added to an organization with ID 1 ; When set to false , new users add an organization , You cannot access the organizational content of other IDs.
Auto_assign_org_role: New user-attached rule, default is Viewer, can also be Admin and Editor
4. Modify firewall to allow access
Iptables-a input-s allowed ip-p tcp-m State--state new-m TCP--dport 3000-j ACCEPT
Service Grafana-server Start
Login Address:
http://ip:3000
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/F5/wKiom1fPtcCTA-tQAABNlfWrP70093.png "title=" 7.png " alt= "Wkiom1fptccta-tqaabnlfwrp70093.png"/>
5. Drop -down modules that can be installed:
[Email protected] ~]# GRAFANA-CLI pluginslist-remote
Id:abhisant-druid-datasource version:0.0.2
Id:alexanderzobnin-zabbix-app version:3.0.0
Id:bosun-app version:0.0.25
Id:bosun-datasource version:0.0.5
Id:crate-datasource version:0.0.1
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/86/F5/wKiom1fPtciyiamnAAAwbZ-jQZI603.png "title=" 8.png " alt= "Wkiom1fptciyiamnaaawbz-jqzi603.png"/>
6. installing the Zabbix module
[Email protected] ~]# GRAFANA-CLI plugins Installalexanderzobnin-zabbix-app
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/86/F5/wKiom1fPtdDDsWv5AAAgB1LAGfY959.png "title=" 9.png " alt= "Wkiom1fptdddswv5aaagb1lagfy959.png"/>
installing the Percona module
[[email protected] Alexanderzobnin-zabbix-app] #grafana-cli plugins install Percona-percona-app
[Email protected] alexanderzobnin-zabbix-app]# grafana-cliplugins install Grafana-piechart-panel
Download and introduction Address:
Https://grafana.net/plugins
7. Add Zabbix Source:
need to restart service after installation (grafana-cli plugins install Alexanderzobnin-zabbix-app)
Login Page
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/86/F3/wKioL1fPtdiC8WCbAAEeonxo2wc202.png "title=" 10.png "alt=" Wkiol1fptdic8wcbaaeeonxo2wc202.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/86/F5/wKiom1fPteCCwkM8AABkKlNCaPc912.png "title=" 11.png "alt=" Wkiom1fpteccwkm8aabkklncapc912.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/86/F5/wKiom1fPtemSdA-BAAA3XP4eX-U600.png "title=" 12.png "alt=" wkiom1fptemsda-baaa3xp4ex-u600.png "/> 650" this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/86/F3/ Wkiol1fptfgze15xaaa96slfev4254.png "title=" 13.png "alt=" Wkiol1fptfgze15xaaa96slfev4254.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/F5/wKiom1fPtfuSevZWAAD-bMUU6BY232.png "title=" 14.png "alt=" Wkiom1fptfusevzwaad-bmuu6by232.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/86/F4/wKioL1fPtgjgQZbEAACFbmTQaKw496.png "title=" 15.png "alt=" Wkiol1fptgjgqzbeaacfbmtqakw496.png "/>
above the URl fill in:Http://<zabbix address >/api_jsonrpc.php
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/86/F5/wKiom1fPthSjI453AAEjSdtV4X0855.png "title=" 16.png "alt=" Wkiom1fpthsji453aaejsdtv4x0855.png "/>
Zabbix need to add a user, or use the default account
8. Start Configuring Graphics
Write again later
This article is from the "Ixhao" blog, make sure to keep this source http://ixhao.blog.51cto.com/11988319/1847284
Grafana build-Optimize Zabbix graphical display