一、Grafana安装
1.直接使用官方源安装
yum install https://dl.grafana.com/oss/release/grafana-5.4.2-1.x86_64.rpm
2.启动相关服务
systemctl daemon-reload
systemctl start grafana-server.service
systemctl enable grafana-server.service
3.安装相关图像呈现软件
yum -y install fontconfig freetype* urw-fonts
4.查看安装信息
[root@zabbix ~]# rpm -qc grafana
/etc/init.d/grafana-server
/etc/sysconfig/grafana-server
/usr/lib/systemd/system/grafana-server.service
5.访问Grafana
登录地址:http://ServerIP:3000
默认用户名/密码:admin/admin
6.安装zabbix插件
[root@zabbix ~]# grafana-cli plugins list-remote
[root@zabbix ~]# grafana-cli plugins install alexanderzobnin-zabbix-app
installing alexanderzobnin-zabbix-app @ 3.10.2
from url: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/3.10.2/download
into: /var/lib/grafana/plugins
✔ Installed alexanderzobnin-zabbix-app successfully
Restart grafana after installing plugins . <service grafana-server restart>
[root@zabbix ~]# systemctl restart grafana-server.service
二、在Grafana配置Zabbix
1.启用zabbix插件
2.添加数据源
3.从官方导入dashboard模板
4.复制需要导入的模板的ID或者使用JSON文件导入
5.查看
转载于:https://blog.51cto.com/lullaby/2398127