Construction and drawing of zabbix+grafana docker
Building and drawing by zabbix and grafana docker
The process is relatively simple, I am lazy, simple to write, if you are interested, you can communicate with me!
Build zabbix and grafana right out of the box
We use docker-compose to build zabbix and grafana with one click.
Download the code
Modify docker-compose.yaml
Yaml configuration file contains zabbix,mysql,grafana and other components, change your own password and other information
Deployment
Docker-compose up-d
Log in to zabbix
The default login method is Admin/Zabbix. Click on the upper right corner to modify the language and password information.
Log in to grafana
The default login method is admin/admin
Enable the zabbix plug-in in plug-in management
Grafana Import data sourc
Add mysql data source
Zabbix_mysql
Db:3306
Database:zabbix
User:root
Password: zabbix
Add zabbix data source URL: http://web/api_jsonrpc.phpZabbix API details:Admin/zabbix Trends: enable Direct DB Connection: enable Alerting: open import graphics template
Click home,import dashboard
After the template is imported, the drawing is completed smoothly.
Finally, a successful picture is attached: