5. 与Grafana结合
最后更新于:2022-04-02 07:41:27
#### Grafana和Zabbix的调用逻辑
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/6f/b8/6fb8477f576aeb8f24a1ce09f22a5f3d_686x413.png)
```
方案一
通过Zabbix API进行读取
方案二
直接读取Zabbix数据库读取
```
#### 安装插件
```
yum install https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/grafana-8.2.3-1.x86_64.rpm
grafana-cli plugins install alexanderzobnin-zabbix-app
systemctl restart grafana-server
# 插件默认不开启
# 登录Data Source->Plugins->Zabbix->config中启用插件
```
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/6d/b9/6db97d7fbcff697f76464acb658095a6_466x419.png)
';