2. grafana插件安装并接入zabbix

一、在线安装

如果不指定安装位置,则默认安装位置为/var/lib/grafana/plugins 插件安装完成之后需要重启grafana

命令在上一篇讲到过

复制代码
//查看相关帮助
[root@localhost ~]# grafana-cli plugins --help
//从列举中的插件过滤zabbix插件
[root@localhost ~]# grafana-cli plugins  list-remote |grep zabbix 
id: alexanderzobnin-zabbix-app version: 3.12.4
//依据id安装插件
[root@localhost ~]# grafana-cli plugins install alexanderzobnin-zabbix-app

installing alexanderzobnin-zabbix-app @ 3.12.4
from: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/3.12.4/download
into: /var/lib/grafana/plugins
 
✔ Installed alexanderzobnin-zabbix-app successfully 
 
Restart grafana after installing plugins . <service grafana-server restar

二、离线安装

访问https://grafana.com/grafana/plugins/all-plugins/

  1. 搜索需要的插件,选好与grafana版本匹配的版本。

2. 点击installtion然后下拉选择与服务器匹配的安装包

3. 下载好后上传到服务器解压并移动到插件目录

复制代码
 # 解压 
[root@localhost ~]# unzip alexanderzobnin-zabbix-app-5.0.0.gpx_zabbix-datasource_linux_amd64.zip
# 移动到plugins 文件夹中 
[root@localhost ~]# mv alexanderzobnin-zabbix-app  /var/lib/grafana/plugins
# 重启grafana-server使生效。 
[root@localhost ~]# systemctl restart grafana-server

三、配置zabbix数据源

先要enable才能看的到,一次点击 管理 - 插件 - zabbix

在 连接 - 数据 - 添加数据源 - 选择zabbix

url写zabbix的api接口

http://192.168.199.123:80/api_jsonrpc.php

这边只填写登录zabbix的账号密码即可(一般都是给一个只读用户就好)

下拉到最后保存测试(绿色装填为成功)

相关推荐
tao35566721 小时前
【用AI学前端】准备工作
前端·人工智能
利刃大大1 天前
【Vue】自定义指令directives && 指令钩子 && IntersectionObserver
前端·javascript·vue.js
共享家95271 天前
搭建 AI 聊天机器人:”我的人生我做主“
前端·javascript·css·python·pycharm·html·状态模式
Halo_tjn1 天前
基于封装的专项 知识点
java·前端·python·算法
m0_748229991 天前
Vue2 vs Vue3:核心差异全解析
前端·javascript·vue.js
C澒1 天前
前端监控系统的最佳实践
前端·安全·运维开发
xiaoxue..1 天前
React 手写实现的 KeepAlive 组件
前端·javascript·react.js·面试
hhy_smile1 天前
Class in Python
java·前端·python
小邓吖1 天前
自己做了一个工具网站
前端·分布式·后端·中间件·架构·golang
南风知我意9571 天前
【前端面试2】基础面试(杂项)
前端·面试·职场和发展