prometheus/handlers/main.yml
jean-yves.fournier ebb8b02dd1 handler name
2022-01-17 16:35:55 +01:00

77 lines
1.9 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: 'prometheus | server | restart container'
docker_container:
name: prometheus
restart: yes
tags: ['prometheus']
- 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']
- name: 'prometheus | phpfpm exporter | restart service'
systemd:
name: prometheus-phpfpm-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | opcache exporter | restart service'
systemd:
name: prometheus-opcache-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | apache exporter | restart service'
systemd:
name: prometheus-apache-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | varnish exporter | restart service'
systemd:
name: prometheus-varnish-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | blackbox exporter | restart service'
systemd:
name: prometheus-blackbox-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'prometheus | redis exporter | restart service'
systemd:
name: prometheus-redis-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']