This commit is contained in:
parent
764f0f106d
commit
6c64bb214c
2 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@
|
||||||
# Prometheus targets.json
|
# Prometheus targets.json
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
- targets: |
|
- targets: |
|
||||||
{{ groups['ovh_pve'] + groups['ovh_vm'] | list | sort }}
|
{{ groups['ovh_pve'] + groups['ovh_vm'] | list | sort }}
|
||||||
prometheus_postgres_targets:
|
prometheus_postgres_targets:
|
||||||
- targets:
|
- targets:
|
||||||
- bdd-ovh.adm.auro.re
|
- bdd-ovh.adm.auro.re
|
||||||
|
@ -145,7 +145,7 @@
|
||||||
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
||||||
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
||||||
|
|
||||||
# Prometheus targets.json
|
#Prometheus targets.json
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
- prometheus-edc.adm.auro.re
|
- prometheus-edc.adm.auro.re
|
||||||
- prometheus-gs.adm.auro.re
|
- prometheus-gs.adm.auro.re
|
||||||
|
|
|
@ -20,12 +20,12 @@
|
||||||
- prometheus.yml
|
- prometheus.yml
|
||||||
notify: Restart Prometheus
|
notify: Restart Prometheus
|
||||||
|
|
||||||
- name: Creates directory for alerts
|
- name: Creates directory for alerts
|
||||||
file:
|
file:
|
||||||
path: /etc/prometheus/alerts
|
path: /etc/prometheus/alerts
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Remove old files
|
- name: Remove old files
|
||||||
file:
|
file:
|
||||||
path: "/etc/prometheus/{{ item }}"
|
path: "/etc/prometheus/{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
Loading…
Reference in a new issue