• 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数据源

       查看图形

       查看对应各个服务器图形

  • 相关阅读:
    [Sass学习]Sass的安装和使用
    [CSS学习] padding属性讲解
    [CSS学习] line-height属性讲解
    IOS学习之路——Swift语言(2)——基本类型与函数
    IOS学习之路——Swift语言(1)——基本类型、运算符与逻辑控制语句
    上海 day23 -- 面向对象三大特征---多态 和 内置魔法函数
    上海 day22 -- 面向对象三大特征---- 封装
    上海 day21 -- 面向对象三大特征----继承
    上海 day20 -- 面向对象基础
    上海 day18~19 ATM+购物车(待更新)
  • 原文地址:https://www.cnblogs.com/minseo/p/9329836.html
Copyright © 2020-2023  润新知