From 25d4f4fb7f75a83e0562d895cabdea05fe17b12d Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Tue, 12 Aug 2025 23:35:21 +0200 Subject: [PATCH] Add snmp job option "metric_relabel_configs" --- templates/node-scraper.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/node-scraper.j2 b/templates/node-scraper.j2 index ba75b4d..1cce520 100644 --- a/templates/node-scraper.j2 +++ b/templates/node-scraper.j2 @@ -111,6 +111,12 @@ {% for relabel_config in job.relabel_configs|d([]) %} - {{ relabel_config|tojson }} {% endfor %} +{% if job.metric_relabel_configs|d([]) %} + metric_relabel_configs: +{% for metric_relabel_config in job.metric_relabel_configs|d([]) %} + - {{ metric_relabel_config|tojson }} +{% endfor %} +{% endif %} {% endfor %} {% endif %}