exporters reorganization
This commit is contained in:
17
tasks/exporter/services/mysqld.yml
Normal file
17
tasks/exporter/services/mysqld.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
- include_tasks: ../common.yml
|
||||
tags: ['prometheus_mysqld_exporter']
|
||||
|
||||
- name: 'mysqld exporter | configuration'
|
||||
template:
|
||||
src: conf/prometheus-mysqld-exporter.j2
|
||||
dest: /etc/default/prometheus-mysqld-exporter
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
when:
|
||||
- prometheus_mysqld_exporter_user is defined
|
||||
register: prometheus_mysqld_exporter_configuration
|
||||
notify:
|
||||
- 'mysqld-exporter-restart'
|
||||
tags: ['prometheus_mysqld_exporter']
|
Reference in New Issue
Block a user