Grafana增加zabbix监控
grafana监控zabbix数据是通过zabbix扩展来实现的:
grafana-cli plugins install alexanderzobnin-zabbix-app
#重启服务
systemctl stop grafana-server systemctl start grafana-server
http://localhost:3000
#登录,选择DataSources,会多一个zabbix数据源
#编辑数据源:
Name:Zabbix
Type:Zabbix
Url:http://127.0.0.1/api_jsonrpc.php
Access:proxy
#也就是zabbix前端的api,确保zabbix前端一直运行
Username:admin
Password:zabbix
#zabbix调用api的账户,确保权限正确,否则数据无法获取到
Save & Test #验证数据源有效性
#增加成功后,会发现多了两个dashboard:zabbix server dashboard,temple linux server