]> git.openstreetmap.org Git - chef.git/commitdiff
Update configuration of mysqld exporter
authorTom Hughes <tom@compton.nu>
Mon, 3 Jul 2023 13:34:44 +0000 (14:34 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 3 Jul 2023 13:34:44 +0000 (14:34 +0100)
cookbooks/mysql/recipes/default.rb

index 2336bc1f75aed739da270739bd124615c4df0aa7..0fa3df913041df5fbfaf2b4ec5e6ee7a208f1ed5 100644 (file)
@@ -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