Merge pull request #270 from molpako/fix/mysqld_exporter_use_socket

fix(mysqld_exporter): Change condition for mysqld_exporter_host check
This commit is contained in:
gardar 2024-01-03 15:53:30 +00:00 committed by GitHub
commit 906a1d3827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
[client]
user={{ mysqld_exporter_username }}
password={{ mysqld_exporter_password }}
{% if mysqld_exporter_host is defined %}
{% if mysqld_exporter_host %}
host={{ mysqld_exporter_host }}
port={{ mysqld_exporter_port }}
{% elif mysqld_exporter_socket is defined %}