mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-27 06:10:32 +00:00
af8fc8fd9e
Add a role for deploying the mysqld_exporter. Signed-off-by: SuperQ <superq@gmail.com>
11 lines
286 B
Django/Jinja
11 lines
286 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
[client]
|
|
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 %}
|
|
socket={{ mysqld_exporter_socket }}
|
|
{% endif %}
|