set port cadvisor in variables

This commit is contained in:
Clément Desvaux 2023-03-20 15:50:02 +01:00
parent 326cf07256
commit f655a0fc6e

View File

@ -362,7 +362,7 @@ scrape_configs:
scrape_interval: 30s scrape_interval: 30s
static_configs: static_configs:
- targets: - targets:
{% for target,port in prometheus_cadvisor_exporter_targets %} {% for target in prometheus_cadvisor_exporter_targets %}
- {{ target }} - {{ target }}
{% endfor %} {% endfor %}
relabel_configs: relabel_configs: