From 410fcc6363ca91e715472ab69c6a4383bdaefa77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Thu, 13 Feb 2020 09:28:43 +0100 Subject: [PATCH] Fix Prometheus mysqld exporter pointing to VIP address Change-Id: I4f553bd0888e200ddf744604c5029e67a95ee2cd Closes-bug: #1863041 --- ansible/roles/prometheus/templates/my.cnf.j2 | 4 ++-- releasenotes/notes/bug-1863041-30d87a768339251b.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/bug-1863041-30d87a768339251b.yaml 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 `