prometheus.prometheus.systemd_exporter role – Prometheus Systemd Exporter

Note

This role is part of the prometheus.prometheus collection (version 0.8.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.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_log_level

string

Only log messages with the given severity or above.

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_tls_server_config

dictionary

Configuration for TLS authentication.

Keys and values are the same as in Prometheus docs.

systemd_exporter_unit_exclude

string

Exclude some systemd units. Expects a regex. More in systemd_exporter docs.

systemd_exporter_unit_include

string

Include some systemd units. Expects a regex. More in systemd_exporter docs.

systemd_exporter_version

string

SystemD exporter package version. Also accepts latest as parameter.

Default: "0.5.0"

systemd_exporter_web_listen_address

string

Address on which systemd exporter will listen”

Default: "0.0.0.0:9558"

Authors

  • Prometheus Community