[Unit]
Description=mysqld_exporter
[Service]
ExecStart=/data/mysqld_exporter/mysqld_exporter --config.my-cnf /etc/mysqlexporter.cnf --web.listen-address=0.0.0.0:9104 \
--collect.slave_status \
--collect.binlog_size \
--collect.info_schema.processlist \
--collect.info_schema.innodb_metrics \
--collect.engine_innodb_status \
--collect.perf_schema.file_events \
--collect.perf_schema.replication_group_member_stats
Restart=on-failure
[Install]
WantedBy=multi-user.target
redis:
[Unit]
Description=Redis Exporter
After=network.target
[Service]
ExecStart=/usr/local/redis_exporter/redis_exporter -redis.addr=localhost:6381,localhost:6382 -redis.password=xxxxxx -web.listen-address=:9121
Restart=on-failure
[Install]
WantedBy=multi-user.target