prometheus.prometheus.snmp_exporter role – Prometheus SNMP exporter

Note

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

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

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

Entry point main – Prometheus SNMP exporter

Synopsis

Parameters

Parameter

Comments

snmp_exporter_binary_install_dir

string

Advanced

Directory to install snmp_exporter binary

Default: "/usr/local/bin"

snmp_exporter_binary_local_dir

string

Enables the use of local packages instead of those distributed on github.

The parameter masnmp set to a directory where the snmp_exporter binary is stored on the host where ansible is run.

This overrides the snmp_exporter_version parameter

snmp_exporter_binary_url

string

URL of the snmp exporter binaries .tar.gz file

Default: "https://github.com/{{ _snmp_exporter_repo }}/releases/download/v{{ snmp_exporter_version }}/snmp_exporter-{{ snmp_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"

snmp_exporter_checksums_url

string

URL of the snmp exporter checksums file

Default: "https://github.com/{{ _snmp_exporter_repo }}/releases/download/v{{ snmp_exporter_version }}/sha256sums.txt"

snmp_exporter_config_file

string

If this is empty, role will download snmp.yml file from https://github.com/prometheus/snmp_exporter.

Otherwise this should contain path to file with custom snmp exporter configuration

snmp_exporter_log_level

string

SNMP exporter service log level

Default: "info"

snmp_exporter_skip_install

boolean

SNMP exporter installation tasks gets skipped when set to true.

Choices:

  • false ← (default)

  • true

snmp_exporter_version

string

SNMP exporter package version. Also accepts latest as parameter.

Default: "0.24.0"

snmp_exporter_web_listen_address

string

Address on which SNMP exporter will be listening

Default: "0.0.0.0:9116"

Authors

  • Prometheus Community