zabbix6.0+grafana12.2 安装zabbix数据源

zabbix+grafana 安装zabbix数据源

 

1.   Grafana 中添加 Zabbix 数据源需要安装 Zabbix 插件并完成配置

   方法一:通过 Grafana UI 安装

  • 登录 Grafana,进入 Configuration > Plugins。
  • 搜索 Zabbix,找到 Zabbix Plugin(通常由 alexanderzobnin 开发)。
  • 点击 Install 安装插件。

   方法二:通过 CLI 安装(适用于 Grafana CLI)

grafana-cli plugins install alexanderzobnin-zabbix-app
systemctl restart grafana-server

2.   启用zabbix,添加 Zabbix 数据源

  • 进入 Connections >Add new connection
  • 进入 Connections >Data Sources,点击 Add data source。
  • 搜索并选择 Zabbix。
  • 填写以下配置:
    • Name: 自定义数据源名称(如 Zabbix-Server)。
    • URL: Zabbix API 的地址(如 http://zabbix-server-ip/zabbix/api_jsonrpc.php)。
    • Username/Password: Zabbix 的 API 访问账号(需有读取权限)。
    • Trends: 选择使用 Trend(长期数据)或 History(实时数据)。
    • Direct DB Connection(可选):如果希望直接连接 Zabbix 数据库(性能更高),需填写数据库信息(MySQL/PostgreSQL)。
  • 点击 Save & Test,确认连接成功。

image

image

image

image

image

image

 

 ......

posted on 2025-11-19 10:45  CARLOS_KONG  阅读(1)  评论(0)    收藏  举报

导航