summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j2')
-rw-r--r--roles/monitoring/prometheus/exporter/register/templates/snmp/probe.yml.j23
1 files changed, 3 insertions, 0 deletions
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 %}