一,安装grafana
vim /etc/yum.repos.d/grafana.repo
[grafana] name=grafana baseurl=https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm repo_gpgcheck=0 enabled=1 gpgcheck=0
sudo yum makecache
sudo yum install grafana
二,安装zabbix插件(https://grafana.com/grafana/plugins/alexanderzobnin-zabbix-app/installation)
cd /var/lib/grafana/plugins grafana-cli plugins install alexanderzobnin-zabbix-app
其他参考命令:
grafana-cli plugins list-remote 获取可用插件的列表
三,配置
启用zabbix插件
http://10.10.128.19/api_jsonrpc.php
如下图,表示添加成功!
重置密码:
#grafana-cli admin reset-admin-password newpassword