Use hostname rather than ip when collecting mysql stats
This comes through into the field metricset.host and some visualisations and dashboards use metricset.host to differentiate individual hosts. Change-Id: I855b151f38865978351a32f0b5e011b4834ccfa5
This commit is contained in:
parent
39c5afb18d
commit
f575c72cf0
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user