prometheus.prometheus.systemd_exporter role – Prometheus Systemd Exporter

Note

This role is part of the prometheus.prometheus collection (version 0.3.1).

To install it use: ansible-galaxy collection install prometheus.prometheus.

To use it in a playbook, specify: prometheus.prometheus.systemd_exporter.

Entry point main – Prometheus Systemd Exporter

Synopsis

Parameters

Parameter

Comments

systemd_exporter_binary_install_dir

string

Advanced

Directory to install systemd_exporter binary

Default: "/usr/local/bin"

systemd_exporter_binary_local_dir

string

Allows to use local packages instead of ones distributed on github.

As parameter it takes a directory where systemd_exporter binary is stored on host on which ansible is run.

This overrides systemd_exporter_version parameter

systemd_exporter_binary_url

string

URL of the systemd exporter binaries .tar.gz file”

Default: "https://github.com/{{ _systemd_exporter_repo }}/releases/download/v{{ systemd_exporter_version }}/systemd_exporter-{{ systemd_exporter_version }}.linux-{{ go_arch }}.tar.gz"

systemd_exporter_checksums_url

string

URL of the systemd exporter checksums file

Default: "https://github.com/{{ _systemd_exporter_repo }}/releases/download/v{{ systemd_exporter_version }}/sha256sums.txt"

systemd_exporter_enable_file_descriptor_size

boolean

Enables file descriptor size metrics. This feature will cause exporter to run as root as it needs access to /proc/X/fd”

Choices:

  • false ← (default)

  • true

systemd_exporter_enable_ip_accounting

boolean

Enables service ip accounting metrics. This feature only works with systemd 235 and above”

Choices:

  • false ← (default)

  • true

systemd_exporter_enable_restart_count

boolean

Enables service restart count metrics. This feature only works with systemd 235 and above”

Choices:

  • false ← (default)

  • true

systemd_exporter_skip_install

boolean

SystemD exporter installation tasks gets skipped when set to true.

Choices:

  • false ← (default)

  • true

systemd_exporter_system_group

string

Advanced

System group for systemd exporter

Default: "systemd-exporter"

systemd_exporter_system_user

string

Advanced

Systemd exporter user

Default: "systemd-exporter"

systemd_exporter_unit_allowlist

string

ERROR while parsing Include some systemd units. Expects a regex. More in L(https://github.com/prometheus-community/systemd_exporter#configuration): Cannot find comma separating parameter 1 from the next one for command “L” starting at index 53 in ‘Include some systemd units. Expects a regex. More in L(https://github.com/prometheus-community/systemd_exporter#configuration)’

systemd_exporter_unit_denylist

string

ERROR while parsing Exclude some systemd units. Expects a regex. More in L(https://github.com/prometheus-community/systemd_exporter#configuration): Cannot find comma separating parameter 1 from the next one for command “L” starting at index 53 in ‘Exclude some systemd units. Expects a regex. More in L(https://github.com/prometheus-community/systemd_exporter#configuration)’

systemd_exporter_version

string

SystemD exporter package version. Also accepts latest as parameter.

Default: "0.4.0"

systemd_exporter_web_listen_address

string

Address on which systemd exporter will listen”

Default: "0.0.0.0:9558"

Authors

  • Prometheus Community