ansible-roles/roles/postgresql_exporter/defaults/main.yml

23 lines
954 B
YAML

---
pg_exporter_version: 0.14.0
pg_exporter_archive_url: https://github.com/prometheus-community/postgres_exporter/releases/download/v{{ pg_exporter_version }}/postgres_exporter-{{ pg_exporter_version }}.linux-amd64.tar.gz
pg_exporter_archive_sha256: 389f8c8d9a57132b9744b2108bee168085da729b574de5996e42cda15110c672
pg_exporter_root_dir: /opt/pg_exporter
# Account under which postgres-exporter will run
pg_exporter_user: postgres
# TCP port on which postgres-exporter will bind
pg_exporter_port: 9187
# List of IP address / CIDR allowed to access postgres-exporter
pg_exporter_src_ip: []
# URI to connect. The default value will connect using the unix socket /var/run/postgresql
pg_exporter_data_source_uri: "postgresql@:5432/postgres?host=/var/run/postgresql"
# If set, will use the provided user and password
# pg_exporter_data_source_user: sqladmin
# pg_exporter_data_source_pass: secret
# List of DB to exclude
pg_exporter_exclude_databases: []