]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mysql/recipes/default.rb
Update configuration of mysqld exporter
[chef.git] / 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