一、web访问
https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.1-1.x86_64.rpm
[root@server ~] yum localinstall -y grafana-4.6.1-1.x86_64.rpm
//yum方式安装本地rpm并自动解决依赖关系
[root@server ~] grafana-cli plugins install alexanderzobnin-zabbix-app
//安装zabbix插件(有些慢)
installing alexanderzobnin-zabbix-app @ 3.9.1
from url: https://grafana.net/api/plugins/alexanderzobnin-zabbix-app/versions/3.9.1/download
into: /var/lib/grafana/plugins
✔ Installed alexanderzobnin-zabbix-app successfully
//出现此行表成功
Restart grafana after installing plugins . <service grafana-server restart>
[root@server ~]rz
undefined-3.9.1.zip
[root@server ~]unzip undefined-3.9.1.zip
[root@server ~] mkdir -p /opt/grafana/data/plugins //创建grafana数据目录
[root@server ~] mv alexanderzobnin-grafana-zabbix-a5afa8d /opt/grafana/data/plugins/alexanderzobnin-zabbix-app
[root@server ~] chmod 777 /opt/grafana/data/plugins/ -R //递归加权
[root@server ~] cd /opt/grafana/data/plugins/
[root@server ~] cp alexanderzobnin-zabbix-app /var/lib/grafana/plugins/ -r
[root@server ~] systemctl start grafana-server.service //启动服务
账号密码默认都是admin
起个名字