prometheus.prometheus.snmp_exporter role – Prometheus SNMP 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.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_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 }}.{{ ansible_system | lower }}-{{ _snmp_exporter_go_ansible_arch }}.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_dir

string

Path to directory with snmp_exporter configuration

Default: "/etc/snmp_exporter"

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_local_cache_path

string

Local path to stash the archive and its extraction

Default: "/tmp/snmp_exporter-{{ ansible_system | lower }}-{{ _snmp_exporter_go_ansible_arch }}/{{ snmp_exporter_version }}"

snmp_exporter_log_level

string

SNMP exporter service log level

Default: "info"

snmp_exporter_system_group

string

Advanced

System group for snmp_exporter

Default: "snmp-exp"

snmp_exporter_system_user

string

Advanced

snmp_exporter system user

Default: "snmp-exp"

snmp_exporter_version

string

SNMP exporter package version. Also accepts latest as parameter.

Default: "0.26.0"

snmp_exporter_web_listen_address

string

Address on which SNMP exporter will be listening

Default: "0.0.0.0:9116"

Authors

  • Prometheus Community