set port cadvisor in variables
This commit is contained in:
		| @@ -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 %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user