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