https://github.com/angristan/ansible-postgres-exporter
Ansible role for postgres_exporter
https://github.com/angristan/ansible-postgres-exporter
ansible ansible-role postgres postgres-exporter postgresql
Last synced: 3 months ago
JSON representation
Ansible role for postgres_exporter
- Host: GitHub
- URL: https://github.com/angristan/ansible-postgres-exporter
- Owner: angristan
- License: mit
- Created: 2022-11-13T13:21:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T13:24:57.000Z (almost 3 years ago)
- Last Synced: 2025-07-21T15:27:14.066Z (3 months ago)
- Topics: ansible, ansible-role, postgres, postgres-exporter, postgresql
- Language: Jinja
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role for Postgres exporter
This role will setup [postgres_exporter](https://github.com/prometheus-community/postgres_exporter) on any Linux machine using systemd.
## Role Variables
- `postgres_exporter_version`: the version of Postgres exporter that will be installed.
The role will download the Postgres exporter release on the deployer and upload the binary to the target host.
If the `/usr/local/bin/postgres_exporter` binary already exists, the role will skip the install steps. You can force them (to update, for instance), by setting `postgres_exporter_force_install` to true.
- `postgres_exporter_web_listen_address`: the address Node exporter will listen on. (`0.0.0.0:9187`)
## Example playbook
```yaml
---
- hosts: myhost
roles: postgres-exporter
```## License
MIT. See LICENSE for more details.
## Author Information
See my other Ansible roles at [angristan/ansible-roles](https://github.com/angristan/ansible-roles).