1、创建centos 7操作系统
2、安装docker docker-compose
3、安装git
4、下载安装包
git clone https://github.com/fivestrong/zabbix-grafana-docker.git
mv zabbix-grafana-docker zabbix-grafana
git clone https://github.com/alexanderzobnin/grafana-zabbix.git zabbix-grafana/grafana/plugins/grafana-zabbix
docker pull mysql:5.7
docker pull zabbix/zabbix-server-mysql:latest
docker pull zabbix/zabbix-web-nginx-mysql:latest
docker pull grafana/grafana:latest
cd zabbix-grafana/
docker-compose up -d
docker-compose ps 查看服务起来的端口
docker-compose ps
Name Command State Ports
------------------------------------------------------------------------------------
grafana /run.sh Up 0.0.0.0:3000->3000/tcp
zabbix-mysql docker-entrypoint.sh --cha ... Up 3306/tcp
zabbix-server docker-entrypoint.sh Up 0.0.0.0:10051->10051/tcp
zabbix-web docker-entrypoint.sh Up 443/tcp, 0.0.0.0:80->80/tcp
5、
然后登陆zabbix添加主机。http://192.168.1.155 用户名:Admin 密码:zabbix
登陆zabbix进行主机添加 。
6、配置grafana接入zabbix
http://192.168.1.155:3000 用户名:admin 密码:admin