update mysqld exporter config
This commit is contained in:
4
templates/conf/prometheus-mysqld-exporter.j2
Normal file
4
templates/conf/prometheus-mysqld-exporter.j2
Normal file
@ -0,0 +1,4 @@
|
||||
# {{ ansible_managed }}
|
||||
[client]
|
||||
user={{ prometheus_mysqld_exporter_user }}
|
||||
password={{ prometheus_mysqld_exporter_password }}
|
@ -5,7 +5,7 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/prometheus-mysqld-exporter \
|
||||
--config.my-cnf /var/lib/prometheus/.my.cnf \
|
||||
--config.my-cnf /etc/default/prometheus-mysqld-exporter \
|
||||
--collect.global_status \
|
||||
--collect.info_schema.innodb_metrics \
|
||||
--collect.auto_increment.columns \
|
||||
|
Reference in New Issue
Block a user