monicazhang 发表于 2017-8-14 16:35:31

Grafana安装和zabbix结合展示

本帖最后由 monicazhang 于 2017-8-14 16:49 编辑

Grafana安装和zabbix结合展示
1 环境安装1.1 在线安装1.2 离线安装登陆地址 http://ip:3000 登录名密码都是admin
2 安装包详情二进制文件 /usr/sbin/grafana-server 启动脚本 /etc/init.d/grafana-server 环境变量 /etc/sysconfig/grafana-server 配置文件 /etc/grafana/grafana.ini systemd服务 grafana-server.service 日志 /var/log/grafana/grafana.log sqlite3数据库 /var/lib/grafana/grafana.db
3 安装grafana-zabbix-appmmbiz_png/icdBCpcEToI8sCsT5umibnFRvwkgED86TJbCdiaVId9d5wx4lIxaIVZh6Mt7vDK95lMHwp1X6Yueib5ksGsFLwy7Gg/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1enable zabbix 设置zabbix 查看测试模板
4 其他插件在线安装grafana-cli plugins list-remote插件列表id: abhisant-druid-datasource version: 0.0.2id: alexanderzobnin-zabbix-app version: 3.2.0id: belugacdn-app version: 1.2.0id: bosun-app version: 0.0.25id: bosun-datasource version: 0.0.5id: briangann-datatable-panel version: 0.0.1id: briangann-gauge-panel version: 0.0.2id: btplc-alarm-box-panel version: 0.0.1id: btplc-peak-report-panel version: 0.0.1id: btplc-trend-box-panel version: 0.0.1id: btplc-trend-dot-panel version: 0.0.1id: crate-datasource version: 0.2.0id: digiapulssi-breadcrumb-panel version: 1.0.0id: fastweb-openfalcon-datasource version: 1.0.0id: fetzerch-sunandmoon-datasource version: 0.1.2id: foursquare-clouderamanager-datasource version: 0.9.2id: grafana-belugacdn-app version: 1.1.0id: grafana-clock-panel version: 0.0.8id: grafana-example-app version: 1.0.1id: grafana-influxdb-08-datasource version: 1.0.2id: grafana-kairosdb-datasource version: 1.0.1id: grafana-piechart-panel version: 1.1.4id: grafana-simple-json-datasource version: 1.2.3id: grafana-worldmap-panel version: 0.0.16id: gridprotectionalliance-openhistorian-datasource version: 1.0.1id: gridprotectionalliance-osisoftpi-datasource version: 1.0.0id: hawkular-datasource version: 1.0.6id: jdbranham-diagram-panel version: 1.4.0id: kentik-app version: 1.1.0id: monitoringartist-monitoringart-datasource version: 1.0.0id: mtanda-heatmap-epoch-panel version: 0.1.7id: mtanda-histogram-panel version: 0.1.6id: neocat-cal-heatmap-panel version: 0.0.3id: ns1-app version: 0.0.5id: opennms-datasource version: 2.0.2id: percona-percona-app version: 1.0.0id: praj-ams-datasource version: 1.0.1id: rackerlabs-blueflood-datasource version: 0.0.2id: raintank-snap-app version: 0.0.4id: raintank-worldping-app version: 1.2.0id: ryantxu-ajax-panel version: 0.0.2id: savantly-heatmap-panel version: 0.1.0id: sileht-gnocchi-datasource version: 1.0.6id: sraoss-sunburst-panel version: 1.0id: stagemonitor-elasticsearch-app version: 0.26.0id: udoprog-heroic-datasource version: 0.1.0id: vonage-status-panel version: 1.0.0id: voxter-app version: 0.0.1插件安装grafana-cli plugins install grafana-clock-panel#钟表形展示grafana-cli plugins install briangann-gauge-panel#字符型展示grafana-cli plugins install natel-discrete-panel#服务器状态grafana-cli plugins install vonage-status-panelsystemctl restart grafana-server#安装的插件可以copy其他服务器对应目录

zabbix API 和grafana 结合
zabbixapi 获取主机数,模板数,监控项,主机组数,并在grafana上展示1 部署拷贝程序包到scripts目录下修改 zabbix_agentd.win 去掉下面的#mmbiz_png/icdBCpcEToI8sCsT5umibnFRvwkgED86TJnUslpBVa39Waj8yhKvw5uftAdO2EdkCTavVp2pQYG8zxiatYv3Bg4jQ/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1重启zabbix-agentd
2 配置修改config.ini
3 zabbix配置导入模板work_monitor_details.xml 在zabbix服务器上附加模板
4 grafana配置导入模板监控统计-1483371984794.json到grafana代码链接代码托管到:bluetom520/ZABBIXAPI.git
原创: bluetom520
页: [1]
查看完整版本: Grafana安装和zabbix结合展示