Installs the PostgreSQL Exporter for Prometheus.
Requires Ansible role bdellegrazie.ansible-role-prometheus_exporter
Variable | Description | Default |
---|---|---|
postgres_exporter_version |
Version of the exporter to use | 0.4.6 |
postgres_exporter_checksum |
checksum of the tarball | sha1 checksum of 0.4.6 tarball |
postgres_exporter_datasource |
DATASOURCE definition | user=postgres host=/var/run/postgresql/ sslmode=disable |
| postgres_exporter_flags
| Command line flags | ['extend.query-path': "{{ postgres_exporter_home }}/queries.yml'] |
The following option is always provided: -collector.textfile.directory /var/lib/postgres_exporter
Ensures the textfile capability is enabled
Other variables are in defaults/main.yml
`bdellegrazie.ansible-role-prometheus_exporter`
- hosts: all
roles:
- { role: bdellegrazie.postgres_exporter }
GPLv3
https://github.com/bdellegrazie/ansible-role-postgres_exporter