Zabbix使用grafana展示图形

  系统环境查看

  官网下载grafana

wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.0.1-1.x86_64.rpm

  安装

yum -y install grafana-5.0.1-1.x86_64.rpm

  启动

/etc/init.d/grafnan-server start 

  要安装一下grafana-zabbix插件,否则无法添加zabbix,命令:

  获取插件命令

 grafana-cli plugins list-remote

  获取插件列表如下

id: abhisant-druid-datasource version: 0.0.5
id: akumuli-datasource version: 1.0.3
id: alexanderzobnin-zabbix-app version: 3.9.1
id: ayoungprogrammer-finance-datasource version: 1.0.0
id: belugacdn-app version: 1.2.0
id: bessler-pictureit-panel version: 1.0.0
id: blackmirror1-singlestat-math-panel version: 1.1.1
id: blackmirror1-statusbygroup-panel version: 1.1.1
id: bosun-app version: 0.0.28
id: briangann-datatable-panel version: 0.0.6
id: briangann-gauge-panel version: 0.0.6
id: btplc-alarm-box-panel version: 1.0.6
id: btplc-peak-report-panel version: 0.2.3
id: btplc-status-dot-panel version: 0.2.3
id: btplc-trend-box-panel version: 0.1.8
id: camptocamp-prometheus-alertmanager-datasource version: 0.0.6
id: citilogics-geoloop-panel version: 1.1.1
id: cloudflare-app version: 0.1.2
id: crate-datasource version: 0.5.1
id: dalmatinerdb-datasource version: 1.0.5
id: ddurieux-glpi-app version: 1.2.0
id: devicehive-devicehive-datasource version: 2.0.1
id: digiapulssi-breadcrumb-panel version: 1.1.3
id: digiapulssi-organisations-panel version: 1.1.0
id: digrich-bubblechart-panel version: 1.1.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: fzakaria-simple-annotations-datasource version: 1.0.0
id: gnocchixyz-gnocchi-datasource version: 1.7.0
id: goshposh-metaqueries-datasource version: 0.0.1
id: grafana-azure-monitor-datasource version: 0.1.1
id: grafana-clock-panel version: 0.1.0
id: grafana-example-app version: 1.0.1
id: grafana-influxdb-08-datasource version: 1.0.2
id: grafana-influxdb-flux-datasource version: 5.1.0
id: grafana-kairosdb-datasource version: 3.0.1
id: grafana-kubernetes-app version: 1.0.1
id: grafana-piechart-panel version: 1.3.3
id: grafana-simple-json-datasource version: 1.4.0
id: grafana-worldmap-panel version: 0.1.2
id: gridprotectionalliance-openhistorian-datasource version: 1.0.2
id: gridprotectionalliance-osisoftpi-datasource version: 1.0.3
id: hawkular-datasource version: 1.1.1
id: ibm-apm-datasource version: 0.8.0
id: instana-datasource version: 1.0.5
id: jasonlashua-prtg-datasource version: 4.0.3
id: jdbranham-diagram-panel version: 1.4.4
id: kentik-app version: 1.2.4
id: linksmart-hds-datasource version: 0.3.0
id: marcuscalidus-svg-panel version: 0.1.1
id: michaeldmoore-annunciator-panel version: 1.0.0
id: monasca-datasource version: 1.0.0
id: monitoringartist-monitoringart-datasource version: 1.0.0
id: moogsoft-aiops-app version: 6.5.0
id: mtanda-google-calendar-datasource version: 1.0.4
id: mtanda-heatmap-epoch-panel version: 0.1.7
id: mtanda-histogram-panel version: 0.1.6
id: natel-discrete-panel version: 0.0.8-pre
id: natel-influx-admin-panel version: 0.0.5
id: natel-plotly-panel version: 0.0.4
id: natel-usgs-datasource version: 0.0.1
id: neocat-cal-heatmap-panel version: 0.0.3
id: novalabs-annotations-panel version: 0.0.1
id: ns1-app version: 0.0.7
id: ntop-ntopng-datasource version: 1.0.0
id: opennms-helm-app version: 1.1.0
id: percona-percona-app version: 1.0.0
id: petrslavotinek-carpetplot-panel version: 0.1.1
id: praj-ams-datasource version: 1.0.1
id: rackerlabs-blueflood-datasource version: 0.0.2
id: radensolutions-netxms-datasource version: 1.1.0
id: raintank-snap-app version: 0.0.5
id: raintank-worldping-app version: 1.2.4
id: ryantxu-ajax-panel version: 0.0.5
id: satellogic-3d-globe-panel version: 0.1.0
id: savantly-heatmap-panel version: 0.2.0
id: sidewinder-datasource version: 0.2.0
id: skydive-datasource version: 1.0.1
id: smartmakers-trafficlight-panel version: 1.0.0
id: sni-pnp-datasource version: 1.0.5
id: snuids-radar-panel version: 1.4.1
id: snuids-trafficlights-panel version: 1.4.2
id: stagemonitor-elasticsearch-app version: 0.83.2
id: udoprog-heroic-datasource version: 0.1.0
id: vertamedia-clickhouse-datasource version: 1.5.1
id: vonage-status-panel version: 1.0.8
id: voxter-app version: 0.0.1
id: yesoreyeram-boomtable-panel version: 0.3.0
id: zuburqan-parity-report-panel version: 1.0.0

  安装Zabbix插件

grafana-cli plugins install alexanderzobnin-zabbix-app

  安装完重启

/etc/init.d/grafana-server restart

  配置grafana并添加mysql和zabbix插件

  登录默认用户名和密码均为admin

http://ip:3000

  启用Zabbix插件

 

   添加MySQL数据源

  

  添加zabbix数据源

   查看图形

   查看对应各个服务器图形

 

posted @ 2018-07-18 16:18  minseo  阅读(9570)  评论(5编辑  收藏  举报