prometheus.prometheus.chrony_exporter role – Prometheus Chrony 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.chrony_exporter.

Entry point main – Prometheus Chrony Exporter

Synopsis

Parameters

Parameter

Comments

chrony_exporter_basic_auth_users

dictionary

Dictionary of users and password for basic authentication. Passwords are automatically hashed with bcrypt.

chrony_exporter_binary_install_dir

string

Advanced

Directory to install binaries

Default: "/usr/local/bin"

chrony_exporter_binary_url

string

URL of the chrony_exporter binaries .tar.gz file

Default: "https://github.com/{{ _chrony_exporter_repo }}/releases/download/v{{ chrony_exporter_version }}/chrony_exporter-{{ chrony_exporter_version }}.{{ ansible_system | lower }}-{{ _chrony_exporter_go_ansible_arch }}.tar.gz"

chrony_exporter_checksums_url

string

URL of the chrony_exporter checksums file

Default: "https://github.com/{{ _chrony_exporter_repo }}/releases/download/v{{ chrony_exporter_version }}/sha256sums.txt"

chrony_exporter_config_dir

string

Path to directory with chrony_exporter configuration

Default: "/etc/chrony_exporter"

chrony_exporter_disabled_collectors

list / elements=string

List of disabled collectors.

By default chrony_exporter disables collectors listed here.

chrony_exporter_enabled_collectors

list / elements=string

List of dicts defining additionally enabled collectors and their configuration.

It adds collectors to those enabled by default.

Default: ["tracking"]

chrony_exporter_http_server_config

dictionary

Config for HTTP/2 support.

Keys and values are the same as in chrony_exporter docs.

chrony_exporter_local_cache_path

string

Local path to stash the archive and its extraction

Default: "/tmp/chrony_exporter-{{ ansible_system | lower }}-{{ _chrony_exporter_go_ansible_arch }}/{{ chrony_exporter_version }}"

chrony_exporter_system_group

string

Advanced

System group for chrony_exporter

Default: "chrony-exp"

chrony_exporter_system_user

string

Advanced

Chrony exporter user

Default: "chrony-exp"

chrony_exporter_tls_server_config

dictionary

Configuration for TLS authentication.

Keys and values are the same as in chrony_exporter docs.

chrony_exporter_version

string

Chrony exporter package version. Also accepts latest as parameter.

Default: "0.11.0"

chrony_exporter_web_listen_address

string

Address on which chrony_exporter will listen

Default: "0.0.0.0:9123"

chrony_exporter_web_telemetry_path

string

Path under which to expose metrics

Default: "/metrics"

Authors

  • Prometheus Community