prometheus/templates/systemd/prometheus-mysqld-exporter.service.j2

29 lines
812 B
Plaintext
Raw Normal View History

2021-04-29 18:53:56 +02:00
[Unit]
Description=Prometheus MySQL Exporter
After=network.target
2021-05-31 12:13:48 +02:00
2021-04-29 18:53:56 +02:00
[Service]
Type=simple
2021-05-31 12:13:48 +02:00
ExecStart=/usr/local/bin/prometheus-mysqld-exporter \
2021-05-31 16:59:06 +02:00
--config.my-cnf /etc/default/prometheus-mysqld-exporter \
2021-05-31 12:13:48 +02:00
--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
2021-04-29 18:53:56 +02:00
[Install]
WantedBy=multi-user.target