An open API service indexing awesome lists of open source software.

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

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).