要監控mysql server狀態
安裝role
ansible-galaxy install cloudalchemy.mysqld_exporter
透過ansible安裝mysqld exporter
playbook.yml
- hosts: all
become: true
roles:
- role: cloudalchemy.mysqld_exporter
mysqld_exporter_dsn: "user:password@(dbHost:3306)/"
mysqld_exporter_web_listen_address: "0.0.0.0:9104"
參考連結
https://github.com/cloudalchemy/ansible-mysqld_exporter/blob/master/defaults/main.yml
沒有留言:
張貼留言