From 4c2360fb533bddf4b4d13eb92335d524d2a488b0 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Mon, 31 May 2021 12:13:48 +0200 Subject: [PATCH] update mysqld unit-files --- .../prometheus-mysqld-exporter.service.j2 | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/templates/systemd/prometheus-mysqld-exporter.service.j2 b/templates/systemd/prometheus-mysqld-exporter.service.j2 index 628335c..bfee56c 100644 --- a/templates/systemd/prometheus-mysqld-exporter.service.j2 +++ b/templates/systemd/prometheus-mysqld-exporter.service.j2 @@ -1,10 +1,28 @@ [Unit] Description=Prometheus MySQL Exporter 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