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 %}