mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-21 19:33:04 +00:00
fix: mysqld_exporter should actually respect the mysqld_exporter_host variable (#88)
Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
f36351b7f1
commit
f02bf8db0e
1 changed files with 3 additions and 4 deletions
|
@ -3,9 +3,8 @@
|
|||
user={{ mysqld_exporter_username }}
|
||||
password={{ mysqld_exporter_password }}
|
||||
{% if mysqld_exporter_host is defined %}
|
||||
host=localhost
|
||||
port=3306
|
||||
{% endif %}
|
||||
{% if mysqld_exporter_socket is defined %}
|
||||
host={{ mysqld_exporter_host }}
|
||||
port={{ mysqld_exporter_port }}
|
||||
{% elif mysqld_exporter_socket is defined %}
|
||||
socket={{ mysqld_exporter_socket }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue