From 729456e0344717010412a1287b028e46ee0d44c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Desvaux?= Date: Mon, 20 Mar 2023 14:49:08 +0100 Subject: [PATCH] set port cadvisor in variables --- templates/conf/prometheus.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/conf/prometheus.yml.j2 b/templates/conf/prometheus.yml.j2 index 0999460..524489d 100644 --- a/templates/conf/prometheus.yml.j2 +++ b/templates/conf/prometheus.yml.j2 @@ -362,7 +362,7 @@ scrape_configs: scrape_interval: 30s static_configs: - targets: -{% for target in prometheus_cadvisor_exporter_targets %} +{% for target,port in prometheus_cadvisor_exporter_targets %} - {{ target }}:{{ port }} {% endfor %} relabel_configs: