Merge "Use hostname rather than ip when collecting mysql stats"

This commit is contained in:
Zuul 2018-06-08 02:49:07 +00:00 committed by Gerrit Code Review
commit 496f009814

View File

@ -351,7 +351,7 @@ metricbeat.modules:
# # Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
# # The username and password can either be set in the DSN or using the username
# # and password config options. Those specified in the DSN take precedence.
hosts: ["{{ galera_root_user }}:{{ galera_root_password }}@tcp(127.0.0.1:3306)/"]
hosts: ["{{ galera_root_user }}:{{ galera_root_password }}@tcp({{ ansible_hostname }}:3306)/"]
#
# # Username of hosts. Empty by default.
username: {{ galera_root_user }}