mbaran0v.ansible_role_prometheus_pgbouncer_exporter
Rol de Ansible: prometheus-pgbouncer-exporter
Rol de Ansible para exportador PgBouncer de Prometheus. Actualmente, funciona en sistemas Linux basados en Debian y RedHat (solo soporte para systemd). Las plataformas probadas son:
- Ubuntu 16.04
- CentOS 7
Requisitos
Requiere Python3 y pip; se recomienda el rol para la instalación de pip de Python3: geerlingguy.pip
Variables del Rol
Las variables que se pueden pasar a este rol y una breve descripción sobre ellas son las siguientes. (Para todas las variables, consulta defaults/main.yml)
pgbouncer_exporter_version: 2.0.1
pgbouncer_exporter_host: 127.0.0.1
pgbouncer_exporter_port: 9127
pgbouncer_exporter_log_level: INFO
# lista de variables de entorno
pgbouncer_exporter_env_variables:
- PGBOUNCER_PASS=passw0rd!
# pgbouncer admite sustitución de variables de entorno
# Es decir, $(PGBOUNCER_PASS) se reemplaza por el contenido de la variable de entorno "PGBOUNCER_PASS"
pgbouncer_exporter_pgbouncers:
- dsn: postgresql://pgbouncer:$(PGBOUNCER_PASS)@127.0.0.1:5432/pgbouncer
connect_timeout: 5
include_databases: []
exclude_databases:
- pgbouncer
Dependencias
Ninguna
Ejemplo de Playbook
Incluir un ejemplo de cómo usar tu rol (por ejemplo, con variables pasadas como parámetros) también es útil para los usuarios:
- hosts: prometheus-pgbouncer-exporter
roles:
- role: geerlingguy.repo-epel
when: ansible_os_family == 'RedHat'
- role: geerlingguy.pip
pip_package: python36-pip
when: ansible_os_family == 'RedHat'
- role: geerlingguy.pip
pip_package: python3-pip
when: ansible_os_family == 'Debian'
- role: mbaran0v.prometheus-pgbouncer-exporter
Licencia
MIT / BSD
Información del Autor
Este rol fue creado en 2019 por Maxim Baranov.
Acerca del proyecto
Prometheus PgBouncer exporter https://github.com/spreaker/prometheus-pgbouncer-exporter
Instalar
ansible-galaxy install mbaran0v.ansible_role_prometheus_pgbouncer_exporter
Licencia
Unknown
Descargas
76
Propietario
Experienced DevOps Engineer