|
| 1 | +--- |
| 2 | +# yamllint disable rule:line-length |
| 3 | +argument_specs: |
| 4 | + main: |
| 5 | + short_description: "Prometheus PostgreSQL Exporter" |
| 6 | + description: |
| 7 | + - "Deploy prometheus L(postgres_exporter,https://github.com/prometheus-community/postgres_exporter) using ansible" |
| 8 | + author: |
| 9 | + - "Prometheus Community" |
| 10 | + options: |
| 11 | + postgres_exporter_version: |
| 12 | + description: "PostgreSQL exporter package version. Also accepts latest as parameter." |
| 13 | + default: "0.15.0" |
| 14 | + postgres_exporter_skip_install: |
| 15 | + description: "PostgreSQL installation tasks gets skipped when set to true." |
| 16 | + type: bool |
| 17 | + default: false |
| 18 | + postgres_exporter_binary_local_dir: |
| 19 | + description: |
| 20 | + - "Enables the use of local packages instead of those distributed on github." |
| 21 | + - "The parameter may be set to a directory where the C(postgres_exporter) binary is stored on the host where ansible is run." |
| 22 | + - "This overrides the I(postgres_exporter_version) parameter" |
| 23 | + postgres_exporter_binary_url: |
| 24 | + description: "URL of the postgres_exporter binaries .tar.gz file" |
| 25 | + default: "https://github.com/{{ _postgres_exporter_repo }}/download/v{{ postgres_exporter_version }}/postgres_exporter-{{ postgres_exporter_version }}.linux-{{ go_arch }}.tar.gz" |
| 26 | + postgres_exporter_checksums_url: |
| 27 | + description: "URL of the postgres_exporter checksums file" |
| 28 | + default: "https://github.com/{{ _postgres_exporter_repo }}/releases/download/v{{ postgres_exporter_version }}/sha256sums.txt" |
| 29 | + postgres_exporter_web_listen_address: |
| 30 | + description: "Address on which postgres_exporter will listen" |
| 31 | + default: "0.0.0.0:9187" |
| 32 | + postgres_exporter_web_telemetry_path: |
| 33 | + description: "Path under which to expose metrics" |
| 34 | + default: "/metrics" |
| 35 | + postgres_exporter_config_dir: |
| 36 | + description: "The path where exporter configuration is stored" |
| 37 | + default: "/etc/postgres_exporter" |
| 38 | + postgres_exporter_config_file: |
| 39 | + description: "The filename of the postgres exporter config file" |
| 40 | + default: "/etc/postgres_exporter/postgres_exporter.yml" |
| 41 | + postgres_exporter_name: |
| 42 | + description: "The target PostgreSQL L(URI, https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS)" |
| 43 | + default: "postgresql:///postgres?host=/var/run/postgresql" |
| 44 | + postgres_exporter_uri: |
| 45 | + description: "The target PostgreSQL, alternative format, single target only is supported. You should set postgres_exporter_name to empty string to use it. Read more L(here,https://github.com/prometheus-community/postgres_exporter?tab=readme-ov-file#environment-variables)" |
| 46 | + postgres_exporter_username: |
| 47 | + description: "The username for PostgreSQL login, required for postgres_exporter_uri" |
| 48 | + default: "exporter" |
| 49 | + postgres_exporter_password: |
| 50 | + description: "The password for PostgreSQL password, required for postgres_exporter_uri" |
| 51 | + default: "secret" |
| 52 | + postgres_exporter_enabled_collectors: |
| 53 | + description: |
| 54 | + - "List of dicts defining additionally enabled collectors and their configuration." |
| 55 | + - "It adds collectors to L(those enabled by default,https://github.com/prometheus-community/postgres_exporter?tab=readme-ov-file#flags)." |
| 56 | + type: "list" |
| 57 | + default: [] |
| 58 | + postgres_exporter_disabled_collectors: |
| 59 | + description: |
| 60 | + - "List of disabled collectors." |
| 61 | + - "By default postgres_exporter disables collectors listed L(here,https://github.com/prometheus-community/postgres_exporter?tab=readme-ov-file#flags)." |
| 62 | + type: "list" |
| 63 | + elements: "str" |
| 64 | + postgres_exporter_tls_server_config: |
| 65 | + description: |
| 66 | + - "Configuration for TLS authentication." |
| 67 | + - "Keys and values are the same as in L(prometheus docs,https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md)." |
| 68 | + type: "dict" |
| 69 | + postgres_exporter_http_server_config: |
| 70 | + description: |
| 71 | + - "Config for HTTP/2 support." |
| 72 | + - "Keys and values are the same as in L(prometheus docs,https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md)." |
| 73 | + type: "dict" |
| 74 | + postgres_exporter_basic_auth_users: |
| 75 | + description: "Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt." |
| 76 | + type: "dict" |
| 77 | + postgres_exporter_binary_install_dir: |
| 78 | + description: |
| 79 | + - "I(Advanced)" |
| 80 | + - "Directory to install postgres_exporter binary" |
| 81 | + default: "/usr/local/bin" |
| 82 | + postgres_exporter_system_group: |
| 83 | + description: |
| 84 | + - "I(Advanced)" |
| 85 | + - "System group for PostgreSQL Exporter" |
| 86 | + default: "postgres-exp" |
| 87 | + postgres_exporter_system_user: |
| 88 | + description: |
| 89 | + - "I(Advanced)" |
| 90 | + - "PostgreSQL Exporter user" |
| 91 | + default: "postgres-exp" |
0 commit comments