From: Tom Hughes Date: Mon, 3 Jul 2023 13:34:44 +0000 (+0100) Subject: Update configuration of mysqld exporter X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/502d0b6bd03072291b6cfc6a15770ac91dd31309 Update configuration of mysqld exporter --- diff --git a/cookbooks/mysql/recipes/default.rb b/cookbooks/mysql/recipes/default.rb index 2336bc1f7..0fa3df913 100644 --- a/cookbooks/mysql/recipes/default.rb +++ b/cookbooks/mysql/recipes/default.rb @@ -90,5 +90,6 @@ end prometheus_exporter "mysqld" do port 9104 - environment "DATA_SOURCE_NAME" => "prometheus:#{mysql_password}@(localhost:3306)/" + options "--mysqld.username=prometheus" + environment "MYSQLD_EXPORTER_PASSWORD" => mysql_password end