diff --git a/templates/conf/prometheus.yml.j2 b/templates/conf/prometheus.yml.j2 index 9661eef..0999460 100644 --- a/templates/conf/prometheus.yml.j2 +++ b/templates/conf/prometheus.yml.j2 @@ -363,12 +363,12 @@ scrape_configs: static_configs: - targets: {% for target in prometheus_cadvisor_exporter_targets %} - - {{ target }}:8080 + - {{ target }}:{{ port }} {% endfor %} relabel_configs: - source_labels: [ __address__ ] target_label: instance - regex: '(.*):8080' + regex: '(.*):{{ port }}' replacement: '${1}' {% endif %}