ansible-collection-prometheus/roles/mysqld_exporter/templates/my_cnf.j2
SuperQ af8fc8fd9e
feat: Add mysqld_exporter role
Add a role for deploying the mysqld_exporter.

Signed-off-by: SuperQ <superq@gmail.com>
2023-03-13 21:08:38 +01:00

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 %}