exporter - review handlers
This commit is contained in:
parent
0367e35f55
commit
6c4ff6d9b8
@ -46,10 +46,11 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
notify:
|
||||||
|
- 'prometheus | blackbox exporter | restart service'
|
||||||
|
|
||||||
- name: 'prometheus | blackbox exporter | configure systemd to use service'
|
- name: 'prometheus | blackbox exporter | configure systemd to use service'
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
name: prometheus-blackbox-exporter.service
|
name: prometheus-blackbox-exporter.service
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
notify:
|
||||||
|
- 'prometheus | memcached exporter | restart service'
|
||||||
|
|
||||||
- name: 'prometheus | memcached exporter | install unit file to systemd'
|
- name: 'prometheus | memcached exporter | install unit file to systemd'
|
||||||
template:
|
template:
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
notify:
|
||||||
|
- 'prometheus | opcache exporter | restart service'
|
||||||
|
|
||||||
- name: 'prometheus | opcache exporter | configuration'
|
- name: 'prometheus | opcache exporter | configuration'
|
||||||
template:
|
template:
|
||||||
@ -28,6 +30,8 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
register: prometheus_opcache_exporter_configuration
|
register: prometheus_opcache_exporter_configuration
|
||||||
|
notify:
|
||||||
|
- 'prometheus | opcache exporter | restart service'
|
||||||
|
|
||||||
- name: 'prometheus | opcache exporter | install unit file to systemd'
|
- name: 'prometheus | opcache exporter | install unit file to systemd'
|
||||||
template:
|
template:
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
notify:
|
||||||
|
- 'prometheus | phpfpm exporter | restart service'
|
||||||
|
|
||||||
- name: 'prometheus | phpfpm exporter | install unit file to systemd'
|
- name: 'prometheus | phpfpm exporter | install unit file to systemd'
|
||||||
template:
|
template:
|
||||||
|
@ -26,14 +26,6 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: 'prometheus | redis exporter | install unit file to systemd'
|
|
||||||
template:
|
|
||||||
src: systemd/prometheus-redis-exporter.service.j2
|
|
||||||
dest: /etc/systemd/system/prometheus-redis-exporter.service
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0600
|
|
||||||
|
|
||||||
- name: 'prometheus | redis exporter | configuration'
|
- name: 'prometheus | redis exporter | configuration'
|
||||||
template:
|
template:
|
||||||
src: conf/prometheus-redis-exporter.j2
|
src: conf/prometheus-redis-exporter.j2
|
||||||
@ -45,6 +37,14 @@
|
|||||||
notify:
|
notify:
|
||||||
- 'prometheus | redis exporter | restart service'
|
- 'prometheus | redis exporter | restart service'
|
||||||
|
|
||||||
|
- name: 'prometheus | redis exporter | install unit file to systemd'
|
||||||
|
template:
|
||||||
|
src: systemd/prometheus-redis-exporter.service.j2
|
||||||
|
dest: /etc/systemd/system/prometheus-redis-exporter.service
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0600
|
||||||
|
|
||||||
- name: 'prometheus | redis exporter | configure systemd to use service'
|
- name: 'prometheus | redis exporter | configure systemd to use service'
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user