diff --git a/ansible/roles/prometheus/templates/my.cnf.j2 b/ansible/roles/prometheus/templates/my.cnf.j2 index 6061acccc3..91351ccf11 100644 --- a/ansible/roles/prometheus/templates/my.cnf.j2 +++ b/ansible/roles/prometheus/templates/my.cnf.j2 @@ -1,5 +1,5 @@ [client] -host={{ database_address }} -port={{ database_port }} +host={{ api_interface_address }} +port={{ mariadb_port }} user={{ prometheus_mysql_exporter_database_user }} password={{ prometheus_mysql_exporter_database_password }} diff --git a/releasenotes/notes/bug-1863041-30d87a768339251b.yaml b/releasenotes/notes/bug-1863041-30d87a768339251b.yaml new file mode 100644 index 0000000000..f5b4f85719 --- /dev/null +++ b/releasenotes/notes/bug-1863041-30d87a768339251b.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Each Prometheus mysqld exporter points now to its local mysqld + instance (MariaDB) instead of VIP address. + `LP#1863041 `