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的账号密码即可(一般都是给一个只读用户就好)

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

相关推荐
大家的林语冰1 分钟前
《前端周刊》尤大开源 Vite+ 全家桶,前端工业革命启动;尤大爆料 Void 云服务新产品,Vite 进军全栈开发;ECMA 源码映射规范......
前端·javascript·vue.js
jiayong2319 分钟前
第 8 课:开始引入组合式函数
前端·javascript·学习
田八22 分钟前
聊聊AI的发展史,AI的爆发并不是偶然
前端·人工智能·程序员
zhanghongbin0132 分钟前
AI 采集器:Claude Code、OpenAI、LiteLLM 监控
java·前端·人工智能
IT_陈寒38 分钟前
Python的列表推导式里藏了个坑,差点让我加班到凌晨
前端·人工智能·后端
吴声子夜歌1 小时前
ES6——正则的扩展详解
前端·mysql·es6
天***88521 小时前
Edge 浏览器离线绿色增强版+官方安装包,支持win7等系统
前端·edge
漫游的渔夫1 小时前
别再直接 `json.loads` 了!AI 返回的 JSON 坑位指南
前端·人工智能
软件工程师文艺2 小时前
从0到1:Claude Code如何用React构建CLI应用
前端·react.js·前端框架
M ? A2 小时前
Vue 迁移 React 实战:VuReact 一键自动化转换方案
前端·vue.js·经验分享·react.js·开源·自动化·vureact