prometheus/handlers/main.yml
2023-04-21 15:25:46 +02:00

106 lines
2.3 KiB
YAML

---
- name: 'grafana-prometheus-restart'
systemd:
name: docker-compose@grafana-prometheus.service
state: restarted
enabled: yes
tags: ['grafana-prometheus']
- name: 'node-exporter-restart'
systemd:
name: prometheus-node-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'mysqld-exporter-restart'
systemd:
name: prometheus-mysqld-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'mongodb-exporter-restart'
systemd:
name: prometheus-mongodb-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'postgres-exporter-restart'
systemd:
name: prometheus-postgres-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'phpfpm-exporter-restart'
systemd:
name: prometheus-phpfpm-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'opcache-exporter-restart'
systemd:
name: prometheus-opcache-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'apache-exporter-restart'
systemd:
name: prometheus-apache-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'varnish-exporter-restart'
systemd:
name: prometheus-varnish-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'blackbox-exporter-restart'
systemd:
name: prometheus-blackbox-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'redis-exporter-restart'
systemd:
name: prometheus-redis-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'memcached-exporter-restart'
systemd:
name: prometheus-memcached-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'cloudflare-exporter-restart'
systemd:
name: docker-compose@cloudflare.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'proxmox-exporter-restart'
systemd:
name: prometheus-proxmox-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']
- name: 'nginx-exporter-restart'
systemd:
name: prometheus-nginx-exporter.service
state: restarted
enabled: yes
tags: ['prometheus']