Zabbix3.2+Grafana4.0实现可视化监控图形

1、Grafana介绍
Grafana 是 Graphite 和 InfluxDB 仪表盘和图形编辑器。
Grafana 是开源的,功能齐全的度量仪表盘和图形编辑器,支持 Graphite,InfluxDB 和 OpenTSDB。
Grafana 主要特性:
灵活丰富的图形化选项;
可以混合多种风格;
支持白天和夜间模式;
多个数据源;
Graphite 和 InfluxDB 查询编辑器等等。
                                                                                   
Zabbix3.2安装可以参考如下:
 
2、Grafana安装
[root@qas-zabbix ~]# yum install initscripts fontconfig
[root@qas-zabbix ~]# rpm -ivh grafana-4.0.2-1481203731.x86_64.rpm 
[root@qas-zabbix ~]# /sbin/chkconfig --add grafana-server
[root@qas-zabbix ~]# yum install fontconfig
[root@qas-zabbix ~]# yum install freetype*
[root@qas-zabbix ~]# yum install urw-fonts
启动grafana-server服务
[root@qas-zabbix ~]# chkconfig grafana-server on
[root@qas-zabbix ~]# service grafana-server start
安装包详细信息
 [root@qas-zabbix ~]# rpm -qc grafana
/etc/grafana/grafana.ini
/etc/grafana/ldap.toml
/etc/init.d/grafana-server
/etc/sysconfig/grafana-server
/usr/lib/systemd/system/grafana-server.service
二进制文件 /usr/sbin/grafana-server
服务管理脚本 /etc/init.d/grafana-server
安装默认文件 /etc/sysconfig/grafana-server
配置文件 /etc/grafana/grafana.ini
安装systemd服务(如果systemd可用 grafana-server.service
日志文件 /var/log/grafana/grafana.log
 
下载zabbix3.2组件
https://grafana.net/plugins/alexanderzobnin-zabbix-app/installation
 
获取可用插件列表
[root@qas-zabbix ~]# grafana-cli plugins list-remote
id: abhisant-druid-datasource version: 0.0.2
id: alexanderzobnin-zabbix-app version: 3.2.0
id: belugacdn-app version: 1.2.0
id: bosun-app version: 0.0.25
id: bosun-datasource version: 0.0.5
id: briangann-datatable-panel version: 0.0.1
id: briangann-gauge-panel version: 0.0.1
id: btplc-alarm-box-panel version: 0.0.1
id: btplc-peak-report-panel version: 0.0.1
id: btplc-trend-box-panel version: 0.0.1
id: btplc-trend-dot-panel version: 0.0.1
id: crate-datasource version: 0.2.0
id: digiapulssi-breadcrumb-panel version: 1.0.0
id: fastweb-openfalcon-datasource version: 1.0.0
id: fetzerch-sunandmoon-datasource version: 0.1.2
id: foursquare-clouderamanager-datasource version: 0.9.2
id: grafana-belugacdn-app version: 1.1.0
id: grafana-clock-panel version: 0.0.8
id: grafana-example-app version: 1.0.1
id: grafana-influxdb-08-datasource version: 1.0.2
id: grafana-kairosdb-datasource version: 1.0.1
id: grafana-piechart-panel version: 1.1.4
id: grafana-simple-json-datasource version: 1.2.3
id: grafana-worldmap-panel version: 0.0.16
id: gridprotectionalliance-openhistorian-datasource version: 1.0.1
id: gridprotectionalliance-osisoftpi-datasource version: 1.0.0
id: hawkular-datasource version: 1.0.6
id: jdbranham-diagram-panel version: 1.4.0
id: kentik-app version: 1.1.0
id: monitoringartist-monitoringart-datasource version: 1.0.0
id: mtanda-heatmap-epoch-panel version: 0.1.7
id: mtanda-histogram-panel version: 0.1.6
id: neocat-cal-heatmap-panel version: 0.0.3
id: ns1-app version: 0.0.5
id: opennms-datasource version: 2.0.2
id: percona-percona-app version: 1.0.0
id: praj-ams-datasource version: 1.0.1
id: rackerlabs-blueflood-datasource version: 0.0.2
id: raintank-snap-app version: 0.0.4
id: raintank-worldping-app version: 1.2.0
id: ryantxu-ajax-panel version: 0.0.2
id: savantly-heatmap-panel version: 0.1.0
id: sileht-gnocchi-datasource version: 1.0.6
id: sraoss-sunburst-panel version: 1.0
id: stagemonitor-elasticsearch-app version: 0.26.0
id: udoprog-heroic-datasource version: 0.1.0
id: vonage-status-panel version: 1.0.0
id: voxter-app version: 0.0.1
Restart grafana after installing plugins . <service grafana-server restart>
[root@qas-zabbix ~]# 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 . <service grafana-server restart>
 
[root@qas-zabbix ~]# service grafana-server restart
Stopping Grafana Server: ...                              [确定]
Starting Grafana Server: ... 
 
Zabbix的API地址为

Zabbix3.2+Grafana4.0实现可视化监控图形

Zabbix3.2+Grafana4.0实现可视化监控图形

更多Zabbix相关教程集合

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/75f70f542e6087b47f8bf7fc3ed82e4c.html