set port cadvisor in variables
This commit is contained in:
parent
729456e034
commit
aeb3a218d1
@ -363,12 +363,12 @@ scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
{% for target,port in prometheus_cadvisor_exporter_targets %}
|
{% for target,port in prometheus_cadvisor_exporter_targets %}
|
||||||
- {{ target }}:{{ port }}
|
- {{ target }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [ __address__ ]
|
- source_labels: [ __address__ ]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
regex: '(.*):{{ port }}'
|
regex: '(.*):8080'
|
||||||
replacement: '${1}'
|
replacement: '${1}'
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user