This task captures some improvements to the systemd handling of the mariadb and prometheus-mysql-exporter ("PME") services; the aim being to simplify their management. Particularly, the problem that currently you have to remember to restart PME after re-starting mariadb; and that on multi-instance hosts you have to handle each instance separately.
- Couple PME and mariadb services on single-instance hosts
- Couple PME and mariadb services on multi-instance hosts
- systemd targets so systemctl restart mariadb.target DTRT on single and multi-instance hosts (optional)