简体   繁体   中英

How to monitor MySQL by Zabbix (in docker containers)?

I have:

  1. Zabbix server (computer A)
  2. Zabbix agent (computer B)
  3. Mysql (computer B)

But all of this components work inside Docker containers. How could I monitor Mysql by Zabbix in this case?

I saw this page ( https://www.zabbix.com/integrations/mysql ). But i think, this won't work in my case.

You can definitely use " Template DB MySQL by Zabbix agent ":

  • if the Zabbix Agent is not dockerized:
    • and the MySQL port is published/mapped:
    • else:
      • map the port, and follow instructions.
  • else:
    • check that mysql client is present in the docker image, add it if missing
    • link that container to the MySQL container, and follow instructions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM