mbaran0v.ansible_role_prometheus_postgres_exporter
Ansible role: prometheus-postgres-exporter
Ansible role for install and configure Prometheus Postgres Exporter. Currently this works on Debian and RedHat based linux systems. Tested platforms are:
- Ubuntu 16.04
- CentOS 7
Requirements
No special requirements; note that this role requires root access, so either run it in a playbook with a global become: yes
Role Variables
The variables that can be passed to this role and a brief description about them are as follows. (For all variables, take a look at defaults/main.yml)
postgres_exporter_version: 0.8.0
version for installation
postgres_exporter_web_listen_address: ":9187"
listen address and port
postgres_exporter_root_dir: /opt/postgres_exporter
directory for installation
postgres_exporter_user: postgres-exp
postgres_exporter_group: "{{ postgres_exporter_user }}"
user and group for service
# see https://github.com/wrouesnel/postgres_exporter#environment-variables
postgres_exporter_env_vars: |
DATA_SOURCE_NAME=postgresql://127.0.0.1:5432/?sslmode=disable
Dependencies
None
Example Playbook
- hosts: app
become: yes
roles:
- mbaran0v.prometheus-postgres-exporter
License
MIT / BSD
Author Information
This role was created in 2018 by Maxim Baranov.
About
Prometheus PostgreSQl Exporter https://github.com/wrouesnel/postgres_exporter
Install
ansible-galaxy install mbaran0v.ansible_role_prometheus_postgres_exporterLicense
Unknown
Downloads
444
Owner
Experienced DevOps Engineer
