Skip to content

Commit

Permalink
adapt to breaking config change in mysqld_exporter version 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tibroc committed Mar 20, 2024
1 parent fea7e68 commit 2ef0b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/mysqld_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ After=network.target
User=mysqld_exporter
Group=mysqld_exporter
Type=simple
Environment=DATA_SOURCE_NAME=exporter:{{ mysqld_exporter_password }}@(localhost:3306)/
ExecStart=/usr/local/bin/mysqld_exporter
Environment=MYSQLD_EXPORTER_PASSWORD={{ mysqld_exporter_password }}
ExecStart=/usr/local/bin/mysqld_exporter --mysqld.address=localhost:3306 --mysqld.username=exporter
Restart=always

[Install]
Expand Down

0 comments on commit 2ef0b3a

Please sign in to comment.