prometheus/handlers/main.yml

35 lines
820 B
YAML
Raw Normal View History

2021-05-26 12:01:00 +02:00
---
- name: 'prometheus | server | restart container'
2021-05-26 12:06:05 +02:00
docker_container:
name: prometheus
restart: yes
2021-05-26 12:01:00 +02:00
- name: 'prometheus | node exporter | restart service'
systemd:
name: prometheus-node-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | mysqld exporter | restart service'
systemd:
name: prometheus-mysqld-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | mongodb exporter | restart service'
systemd:
name: prometheus-mongodb-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | postgres exporter | restart service'
systemd:
name: prometheus-postgres-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']