Installation Prometheus-postgres-exporter #53
4 changed files with 7 additions and 6 deletions
|
@ -132,8 +132,8 @@
|
|||
- targets: |
|
||||
{{ groups['ovh_pve'] + groups['ovh_vm'] | list | sort }}
|
||||
prometheus_postgres_targets:
|
||||
- targets:
|
||||
- bdd-ovh.adm.auro.re
|
||||
- targets:
|
||||
- bdd-ovh.adm.auro.re
|
||||
prometheus_docker_targets:
|
||||
- docker-ovh.adm.auro.re:8087
|
||||
roles:
|
||||
|
@ -145,7 +145,7 @@
|
|||
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
||||
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
||||
|
||||
#Prometheus targets.json
|
||||
# Prometheus targets.json
|
||||
prometheus_targets:
|
||||
- prometheus-edc.adm.auro.re
|
||||
- prometheus-gs.adm.auro.re
|
||||
|
@ -157,7 +157,7 @@
|
|||
roles:
|
||||
- prometheus_federate
|
||||
|
||||
#Postgres Exporters
|
||||
# Postgres Exporters
|
||||
- hosts: bdd,radius
|
||||
roles:
|
||||
- prometheus_postgres
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
file:
|
||||
pz2891 marked this conversation as resolved
|
||||
path: /etc/prometheus/alerts
|
||||
state: directory
|
||||
mode: 0644
|
||||
|
||||
- name: Remove old files
|
||||
file:
|
||||
|
|
|
@ -35,5 +35,5 @@
|
|||
systemd:
|
||||
name: prometheus-postgres-exporter
|
||||
enabled: true
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
state: started
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
name:
|
||||
- postgresql
|
||||
- postgresql-client-11=11.7-0+deb10u1
|
||||
force: yes
|
||||
force: true
|
||||
|
||||
- name: Install postgresql ansible module requirement(s)
|
||||
pip:
|
||||
|
|
Loading…
Reference in a new issue
Ça pourrait être bien de préciser le propriétaire et le groupe du dossier.