prometheus.prometheus.postgres_exporter role – Prometheus PostgreSQL Exporter
Note
This role is part of the prometheus.prometheus collection (version 0.23.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 prometheus.prometheus
.
To use it in a playbook, specify: prometheus.prometheus.postgres_exporter
.
Entry point main
– Prometheus PostgreSQL Exporter
Synopsis
Deploy prometheus postgres_exporter using ansible
Parameters
Parameter |
Comments |
---|---|
Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt. |
|
Advanced Directory to install postgres_exporter binary Default: |
|
URL of the postgres_exporter binaries .tar.gz file Default: |
|
URL of the postgres_exporter checksums file Default: |
|
Path to directory with postgres_exporter configuration Default: |
|
The filename of the postgres exporter config file Default: |
|
List of disabled collectors. By default postgres_exporter disables collectors listed here. |
|
List of dicts defining additionally enabled collectors and their configuration. It adds collectors to those enabled by default. Default: |
|
Config for HTTP/2 support. Keys and values are the same as in prometheus docs. |
|
Local path to stash the archive and its extraction Default: |
|
The target PostgreSQL URI Default: |
|
The password for PostgreSQL password, required for postgres_exporter_uri Default: |
|
Advanced System group for PostgreSQL Exporter Default: |
|
Advanced PostgreSQL Exporter user Default: |
|
Configuration for TLS authentication. Keys and values are the same as in prometheus docs. |
|
The target PostgreSQL, alternative format, single target only is supported. You should set postgres_exporter_name to empty string to use it. Read more here |
|
The username for PostgreSQL login, required for postgres_exporter_uri Default: |
|
PostgreSQL exporter package version. Also accepts latest as parameter. Default: |
|
Address on which postgres_exporter will listen Default: |
|
Path under which to expose metrics Default: |