2023-02-22 11:22:20 +00:00
|
|
|
---
|
2023-03-08 07:15:06 +00:00
|
|
|
# yamllint disable rule:line-length
|
2023-02-22 11:22:20 +00:00
|
|
|
argument_specs:
|
|
|
|
main:
|
|
|
|
short_description: "Prometheus SNMP exporter"
|
|
|
|
description:
|
|
|
|
- "Deploy and manage prometheus L(SNMP exporter,https://github.com/prometheus/snmp_exporter) using ansible."
|
|
|
|
author:
|
|
|
|
- "Prometheus Community"
|
|
|
|
options:
|
|
|
|
snmp_exporter_version:
|
2023-08-25 14:35:24 +00:00
|
|
|
description: "SNMP exporter package version. Also accepts latest as parameter."
|
2023-12-11 14:31:57 +00:00
|
|
|
default: "0.25.0"
|
2023-03-20 15:00:21 +00:00
|
|
|
snmp_exporter_skip_install:
|
|
|
|
description: "SNMP exporter installation tasks gets skipped when set to true."
|
|
|
|
type: bool
|
|
|
|
default: false
|
2023-08-25 14:35:24 +00:00
|
|
|
snmp_exporter_binary_local_dir:
|
|
|
|
description:
|
|
|
|
- "Enables the use of local packages instead of those distributed on github."
|
|
|
|
- "The parameter masnmp set to a directory where the C(snmp_exporter) binary is stored on the host where ansible is run."
|
|
|
|
- "This overrides the I(snmp_exporter_version) parameter"
|
2023-03-06 21:53:28 +00:00
|
|
|
snmp_exporter_binary_url:
|
|
|
|
description: "URL of the snmp exporter binaries .tar.gz file"
|
2023-03-12 15:48:29 +00:00
|
|
|
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"
|
2023-03-06 21:53:28 +00:00
|
|
|
snmp_exporter_checksums_url:
|
|
|
|
description: "URL of the snmp exporter checksums file"
|
2023-03-12 15:48:29 +00:00
|
|
|
default: "https://github.com/{{ _snmp_exporter_repo }}/releases/download/v{{ snmp_exporter_version }}/sha256sums.txt"
|
2023-02-22 11:22:20 +00:00
|
|
|
snmp_exporter_web_listen_address:
|
|
|
|
description: "Address on which SNMP exporter will be listening"
|
|
|
|
default: "0.0.0.0:9116"
|
2023-03-06 21:53:28 +00:00
|
|
|
snmp_exporter_log_level:
|
|
|
|
description: "SNMP exporter service log level"
|
|
|
|
default: info
|
2023-02-22 11:22:20 +00:00
|
|
|
snmp_exporter_config_file:
|
|
|
|
description:
|
|
|
|
- "If this is empty, role will download snmp.yml file from U(https://github.com/prometheus/snmp_exporter)."
|
|
|
|
- "Otherwise this should contain path to file with custom snmp exporter configuration"
|
2023-08-25 14:35:24 +00:00
|
|
|
snmp_exporter_binary_install_dir:
|
|
|
|
description:
|
|
|
|
- "I(Advanced)"
|
|
|
|
- "Directory to install snmp_exporter binary"
|
|
|
|
default: "/usr/local/bin"
|