hachyderm.general.pgbouncer_exporter role – Install and configure PgBouncer Exporter

Note

This role is part of the hachyderm.general collection (version 1.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install hachyderm.general.

To use it in a playbook, specify: hachyderm.general.pgbouncer_exporter.

Entry point main – Install and configure PgBouncer Exporter

Synopsis

Parameters

Parameter

Comments

pgbouncer_exporter_arch

string

Architecture of the system where the exporter will be installed.

Default: "amd64"

pgbouncer_exporter_bin

path

Path to the exporter binary.

Default: "/usr/local/bin/pgbouncer_exporter"

pgbouncer_exporter_checksum

string

Checksum of the downloaded archive to avoid supply-chain attack.

Default: "de95a3d22141c0f84ac33de07e793c4993410f43d7c10e8ba281559381e031da"

pgbouncer_exporter_connection_string

string

URI to connect to PgBouncer.

Default: "postgres://postgres:@localhost:6543/pgbouncer?sslmode=disable"

pgbouncer_exporter_download_url

string

URL used to download the exporter archive.

Default: "https://github.com/prometheus-community/pgbouncer_exporter/releases/download/v{{ pgbouncer_exporter_version }}/ pgbouncer_exporter-{{ pgbouncer_exporter_version }}.{{ pgbouncer_exporter_os }}-{{ pgbouncer_exporter_arch }}.tar.gz"

pgbouncer_exporter_group

string

Group to create for the user to run the exporter.

Default: "{{ pgbouncer_exporter_user }}"

pgbouncer_exporter_os

string

Operating system of where the exporter will be installed.

Default: "linux"

pgbouncer_exporter_port

integer

Port to listen for the exporter.

Default: 9127

pgbouncer_exporter_telemetry_path

string

Route to scrap metrics on the exporter.

Default: "/metrics"

pgbouncer_exporter_user

string

User to create to run the exporter.

Default: "pgbouncer-exp"

pgbouncer_exporter_version

string

Version of the exporter.

Default: "0.11.0"

Authors

  • Hachyderm contributors