zabbix + grafana 优化zabbix图形显示
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix + grafana 优化zabbix图形显示相关的知识,希望对你有一定的参考价值。
#
#grafana 官方文档:http://docs.grafana.org/installation/rpm/
#
#安装grafana
[[email protected] ~]# yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.2.0-1.x86_64.rpm
#安装zabbix
#启动服务
[[email protected] ~]# systemctl start grafana-server.service [[email protected] ~]# netstat -lntup | grep grafana tcp6 0 0 :::3000 :::* LISTEN 3259/grafana-server [[email protected] ~]# rpm -qc grafana /etc/init.d/grafana-server /etc/sysconfig/grafana-server /usr/lib/systemd/system/grafana-server.service [[email protected] ~]#
#访问 默认账户:admin 默认密码:admin
#登陆
#查找官方插件
[email protected] ~]# grafana-cli plugins list-remove Grafana cli plugins: ‘list-remove‘ is not a Grafana cli plugins command. See ‘grafana-cli --help‘. [[email protected] ~]# grafana-cli plugins list-remote id: abhisant-druid-datasource version: 0.0.4 id: adremsoft-netcrunch-app version: 1.0.0 id: alexanderzobnin-zabbix-app version: 3.3.0 id: belugacdn-app version: 1.2.0 id: bessler-pictureit-panel version: 1.0.0 id: bosun-app version: 0.0.28 id: briangann-datatable-panel version: 0.0.1 id: briangann-gauge-panel version: 0.0.3 id: btplc-alarm-box-panel version: 0.0.3 id: btplc-peak-report-panel version: 0.0.3 id: btplc-trend-box-panel version: 0.0.3 id: btplc-trend-dot-panel version: 0.0.3 id: cloudflare-app version: 0.1.1 id: crate-datasource version: 0.5.1 id: digiapulssi-breadcrumb-panel version: 1.0.0 id: digiapulssi-organisations-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-clock-panel version: 0.0.9 id: grafana-example-app version: 1.0.1 id: grafana-influxdb-08-datasource version: 1.0.2 id: grafana-kairosdb-datasource version: 2.0.1 id: grafana-piechart-panel version: 1.1.4 id: grafana-simple-json-datasource version: 1.3.1 id: grafana-worldmap-panel version: 0.0.17 id: gridprotectionalliance-openhistorian-datasource version: 1.0.1 id: gridprotectionalliance-osisoftpi-datasource version: 1.0.1 id: hawkular-datasource version: 1.0.7 id: jdbranham-diagram-panel version: 1.4.0 id: kentik-app version: 1.2.3 id: monasca-datasource version: 1.0.0 id: monitoringartist-monitoringart-datasource version: 1.0.0 id: mtanda-google-calendar-datasource version: 1.0.0 id: mtanda-heatmap-epoch-panel version: 0.1.7 id: mtanda-histogram-panel version: 0.1.6 id: natel-discrete-panel version: 0.0.4 id: natel-influx-admin-panel version: 0.0.2 id: natel-plotly-panel version: 0.0.3 id: neocat-cal-heatmap-panel version: 0.0.3 id: ns1-app version: 0.0.5 id: opennms-datasource version: 2.1.0 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: radensolutions-netxms-datasource version: 1.0.0 id: raintank-kubernetes-app version: 0.0.7 id: raintank-snap-app version: 0.0.5 id: raintank-worldping-app version: 1.2.3 id: ryantxu-ajax-panel version: 0.0.2 id: satellogic-3d-globe-panel version: 0.1.0 id: savantly-heatmap-panel version: 0.1.0 id: sileht-gnocchi-datasource version: 1.0.6 id: sni-pnp-datasource version: 1.0.1 id: stagemonitor-elasticsearch-app version: 0.26.0 id: udoprog-heroic-datasource version: 0.1.0 id: vertamedia-clickhouse-datasource version: 0.0.1 id: vonage-status-panel version: 1.0.4 id: voxter-app version: 0.0.1 Restart grafana after installing plugins . <service grafana-server restart> [[email protected] ~]#
#插件安装方法 参考:http://docs.grafana-zabbix.org/installation/
#安装插件 (国内网络原因,下载的速度非常慢,不建议用此方法)
[[email protected] ~]# grafana-cli plugins install alexanderzobnin-zabbix-app
#安装插件 (建议用此方法,此方法速度也慢,但还能接受.....)
[[email protected] ~]# cd /var/lib/grafana/plugins [[email protected] plugins]# ls [[email protected] plugins]# yum install -y git [[email protected] plugins]# git clone https://github.com/alexanderzobnin/grafana-zabbix Cloning into ‘grafana-zabbix‘... remote: Counting objects: 3984, done. remote: Total 3984 (delta 0), reused 0 (delta 0), pack-reused 3984 Receiving objects: 100% (3984/3984), 2.02 MiB | 16.00 KiB/s, done. Resolving deltas: 100% (2595/2595), done. [[email protected] plugins]# ls grafana-zabbix [[email protected] plugins]#
#重启服务
[[email protected] ~]# systemctl restart grafana-server.service
#登陆
#打开zabbix 插件
#enable插件
#添加数据源
#url 为zabbix全路径 +api_jsonrpc.php
#Usrename 为 zabbix 登陆账户
#Password 为zabbix 登陆密码
#参考:http://docs.grafana-zabbix.org/installation/configuration/
#添加成功
#查看现在有模板
#模板一
#模板二
#模板二
#新建图形 参考:http://docs.grafana-zabbix.org/guides/gettingstarted/#simple-graph
#单击 panel Title
#选择panel data source
#新建图形
#grafana 头丰富的插件,图形,可以对zabiix的图形不足加以补充
本文出自 “Chauncey” 博客,请务必保留此出处http://cqwujiang.blog.51cto.com/10808946/1925265
以上是关于zabbix + grafana 优化zabbix图形显示的主要内容,如果未能解决你的问题,请参考以下文章