安装Grafana
1、安装Grafana
这里用的6.7.2-1
版本
yum localinstall https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/grafana-6.7.2-1.x86_64.rpm
2、启动grafana并设为开机自启
代码语言:javascript复制systemctl start grafana-server.service && systemctl enable grafana-server.service
3、安装zabbix插件
代码语言:javascript复制# grafana下载boom theme插件
grafana-cli plugins install yesoreyeram-boomtheme-panel
# 世界ping
grafana-cli plugins install raintank-worldping-app
# Zabbix报警
grafana-cli plugins install alexanderzobnin-zabbix-app
# 世界地图面板
grafana-cli plugins install grafana-worldmap-panel
# 轻松地增强对网络流量的可见性
grafana-cli plugins install kentik-app
# NS1 Grafana应用程序可让您实时查看DNS流量并监视NS1平台内配置的作业
grafana-cli plugins install ns1-app
# 时钟
grafana-cli plugins install grafana-clock-panel
# 饼图
grafana-cli plugins install grafana-piechart-panel
grafana-cli plugins install macropower-analytics-panel
grafana-cli plugins install digiapulssi-breadcrumb-panel
grafana-cli plugins install andig-darksky-datasource
grafana-cli plugins install citilogics-geoloop-panel
grafana-cli plugins install bessler-pictureit-panel
grafana-cli plugins install natel-plotly-panel
grafana-cli plugins install snuids-radar-panel
grafana-cli plugins install blackmirror1-statusbygroup-panel
grafana-cli plugins install snuids-trafficlights-panel
grafana-cli plugins install smartmakers-trafficlight-panel
grafana-cli plugins install btplc-trend-box-panel
grafana-cli plugins install fatcloud-windrose-panel
# 气泡图
grafana-cli plugins install digrich-bubblechart-panel
# json数据
grafana-cli plugins install grafana-simple-json-datasource
# k8s监控应用
grafana-cli plugins install grafana-kubernetes-app
# WindRoseby 极坐标图
grafana-cli plugins install fatcloud-windrose-panel
# 雷达图
grafana-cli plugins install snuids-radar-panel
# 世界地图热力图
grafana-cli plugins install ovh-warp10-datasource
# 选点监控
grafana-cli plugins install natel-usgs-datasource
# es数据监控
grafana-cli plugins install stagemonitor-elasticsearch-app
# Plotly直接坐标系散点图
grafana-cli plugins install natel-plotly-panel
# 组织结构图
grafana-cli plugins install digiapulssi-organisations-panel
# ajax请求更新数据
grafana-cli plugins install ryantxu-ajax-panel
# Ps:更新插件示例:
grafana-cli plugins update alexanderzobnin-zabbix-app
4、查看端口是否启用
代码语言:javascript复制netstat -tunlp | grep 3000
访问 dashBoard 默认密码admin admin
代码语言:javascript复制http://localhost:3000
5、汉化界面
前往https://github.com/grafana/grafana/tree/v6.7.x
下载源码
提前安装好 node
和 yarn
进入源码目录编译
yarn install
yarn build
首次同步前,先备份/usr/share/grafana/public
目录
mv /usr/share/grafana/public /usr/share/grafana/public.source
#将当前编译目录下的public目录拷贝到/usr/share/grafana/
#重启
service grafana-server restart