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 天前
React 之死·终章:一个 useRef,把闭包陷阱、依赖数组、漫天 rerender 全送走
前端·react.js·ai编程
不好听6131 天前
HTML 事件监听机制:从 DOM Level 0 到 React 合成事件
前端·react.js·html
wordbaby1 天前
为什么刷新页面就 404?聊聊 SPA 路由与 Nginx 的那点事
前端
不好听6131 天前
React 核心概念:JSX、组件与数据驱动
前端·react.js
触底反弹1 天前
🔥 React 零基础入门(中):500 行屎山代码到组件化的蜕变
前端·javascript·react.js
不好听6131 天前
React vs Vue:两大前端框架技术选型深度对比
前端·vue.js·react.js
GuWenyue1 天前
Cursor黑盒拆解!1套LangChain.js手写Mini编程Agent,自动生成React项目,效率提升60%
前端·数据库·人工智能
GuWenyue1 天前
传统Agent工具两大痛点!300行代码落地MCP跨语言工具,彻底解耦LLM与工具
前端·人工智能·算法
小林ixn1 天前
从 onclick 到 React 合成事件,再到完整应用逻辑:一次前端架构的深度剖析
前端·react.js·前端框架
Csvn1 天前
🧩「找不到模块」排查全记录——Monorepo 下 TypeScript 路径别名的 5 种「不通」与根治方案
前端