From 2553ebb2aa3a03d2859f0fdf725b465a43dce95a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 26 Aug 2023 04:51:11 +0200 Subject: prometheus/exporter/snmp: switch to new config format (0.23.0+) --- .../prometheus/exporter/register/templates/snmp/probe.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/monitoring/prometheus/exporter/register/templates') diff --git a/roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j2 b/roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j2 index 3ecf129a..a50a32ff 100644 --- a/roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j2 +++ b/roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j2 @@ -3,6 +3,9 @@ instance: '{{ target.instance }}' __param_target: '{{ target.config.target }}' __param_module: '{{ target.config.module }}' +{% if 'auth' in target.config %} + __param_auth: '{{ target.config.auth }}' +{% endif %} {% for name, value in prometheus_target_labels.items() %} {{ name }}: '{{ value }}' {% endfor %} -- cgit v1.2.3