mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-02-14 21:39:15 +00:00
adds mysql exporter. Installs on database host
This commit is contained in:
3
roles/exporter-mysql/templates/my.cnf.j2
Normal file
3
roles/exporter-mysql/templates/my.cnf.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
[client]
|
||||
user = {{ env_vars.DB_USERNAME }}
|
||||
password = {{ env_vars.DB_PASSWORD }}
|
||||
12
roles/exporter-mysql/templates/mysqld_exporter.service.j2
Normal file
12
roles/exporter-mysql/templates/mysqld_exporter.service.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=mysqld exporter
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=nobody
|
||||
ExecStart=/usr/local/bin/mysqld_exporter --config.my-cnf=/home/forge/.my.cnf
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user