mysqld_exporter: Initial version of role
This commit is contained in:
parent
5751c77b8f
commit
8bc5793d70
7 changed files with 125 additions and 0 deletions
14
roles/mysqld_exporter/files/mysqld_exporter.service
Normal file
14
roles/mysqld_exporter/files/mysqld_exporter.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Prometheus MySQL Exporter
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=mysqld_exporter
|
||||
Group=mysqld_exporter
|
||||
ExecStart=/usr/local/bin/mysqld_exporter --config.my-cnf=/etc/mysqld_exporter/my.cnf --web.config.file=/etc/mysqld_exporter/web-config.yml
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue