1. 对接 Zabbix
1.1 安装 Zabbix 插件
- 在线安装:




1.2 配置 Zabbix 数据源
- 点击 Configuration > Data Sources > Add data source。
- 选择 Zabbix,填写:
- URL:http://<zabbix-server>/api_jsonrpc.php
- Username:Zabbix 用户名
- Password:Zabbix 密码
- 点击 Save & Test,出现绿色提示表示成功。
- 排查:若失败,检查网络(ping <zabbix-server>)和 API 权限。
1.3 对接 Prometheus(额外优化)
若已安装 Prometheus,添加数据源:
- 选择 Prometheus。
- URL:http://localhost:9090
- 点击 Save & Test。
2. 使用 Grafana
2.1 创建仪表板
点击左侧 + > Dashboard > Add new panel。

选择数据源(Zabbix 或 Prometheus)。
配置查询:
- Zabbix :选择 Host group、Host、Item(如 system.cpu.util[,user]),添加函数(如 avg)。