Files
ansible-playbooks/roles/postgres/vars/debian.yml
T
Clément Désiles aa78e238aa feat(monitoring): add nginx, postgres, valkey prometheus exporters
- nginx: nginx-prometheus-exporter gated by nginx_exporter_enabled,
  deploys loopback-only stub_status (8090), exporter on 9113
- postgres: postgres_exporter gated by postgres_exporter_enabled,
  creates postgres_exporter role with pg_monitor, exporter on 9187
- valkey: redis_exporter gated by valkey_exporter_enabled, adds
  read-only ACL user to users.acl, exporter on 9121

Each exporter follows the nut pattern (tasks/exporter.yml included from
main.yml, OS vars, 0600 secret env files, password asserts).
2026-09-06 09:37:36 +02:00

17 lines
540 B
YAML

---
postgres_packages:
- postgresql
- postgresql-contrib
- python3-psycopg2
postgres_service_name: postgresql
postgres_config_path: /etc/postgresql/current/main/postgresql.conf
postgres_config_dir: /etc/postgresql/current/main/conf.d
postgres_hba_path: /etc/postgresql/current/main/pg_hba.conf
# Prometheus exporter
postgres_exporter_package: prometheus-postgres-exporter
postgres_exporter_service: prometheus-postgres-exporter
postgres_exporter_args_file: /etc/default/prometheus-postgres-exporter
postgres_exporter_args_var: ARGS