update mysqld unit-files

This commit is contained in:
Ludovic Cartier 2021-05-31 12:13:48 +02:00
parent db2eae4abf
commit 4c2360fb53

View File

@ -4,7 +4,25 @@ After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/prometheus-mysqld-exporter
ExecStart=/usr/local/bin/prometheus-mysqld-exporter \
--config.my-cnf /var/lib/prometheus/.my.cnf \
--collect.global_status \
--collect.info_schema.innodb_metrics \
--collect.auto_increment.columns \
--collect.info_schema.processlist \
--collect.binlog_size \
--collect.info_schema.tablestats \
--collect.global_variables \
--collect.info_schema.query_response_time \
--collect.info_schema.userstats \
--collect.info_schema.tables \
--collect.perf_schema.tablelocks \
--collect.perf_schema.file_events \
--collect.perf_schema.eventswaits \
--collect.perf_schema.indexiowaits \
--collect.perf_schema.tableiowaits \
--collect.slave_status \
--web.listen-address=0.0.0.0:9104
[Install]
WantedBy=multi-user.target