Grafana 是 Graphite 和 InfluxDB 仪表盘和图形编辑器。Grafana 是开源的,功能齐全的度量仪表盘和图形编辑器,支持 Graphite,InfluxDB 和 OpenTSDB。Grafana 主要特性:灵活丰富的图形化选项;可以混合多种风格;支持白天和夜间模式;多个数据源;Graphite 和 InfluxDB 查询编辑器等等。
1、Zabbix3.0安装如下:
[root@localhost ~]#https://www.jianshu.com/p/b1c313abd5f8
2、Grafana安装:
[root@localhost ~]#yum install initscripts fontconfig
[root@localhost ~]#rpm -ivh grafana-4.0.2-1481203731.x86_64.rpm
[root@localhost ~]#/sbin/chkconfig --add grafana-server
[root@localhost ~]#yum install fontconfig
[root@localhost ~]#yum install freetype*
[root@localhost ~]#yum install urw-fonts
启动grafana-server服务:
[root@localhost ~]#service grafana-server start
下载zabbix3.0组件
[root@localhost ~]#https://grafana.net/plugins/alexanderzobnin-zabbix-app/installation
获取可用插件列表:
[root@localhost ~]#grafana-cli plugins list-remote
安装插件:
[root@localhost ~]#grafana-cli plugins install alexanderzobnin-zabbix-app
installing alexanderzobnin-zabbix-app @ 3.2.0
from url: https://grafana.net/api/plugins/alexanderzobnin-zabbix-app/versions/3.2.0/download
into: /var/lib/grafana/plugins
✔ Installed alexanderzobnin-zabbix-app successfully
Restart grafana after installing plugins .
[root@qas-zabbix ~]# service grafana-server restart
Stopping Grafana Server: ... [确定]
Starting Grafana Server: ... [确定]
Zabbix的API地址为
http://localhost/zabbix/api_jsonrpc.php (ip为zabbix的服务端地址)
效果图(比较丑,年后有时间一定要做的跟官网上的一样漂亮):