Skip to content
Snippets Groups Projects
Verified Commit a1cc586d authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

prometheus: place target list before vhost label

parent 2cfecbb5
No related branches found
No related tags found
No related merge requests found
Pipeline #17488 passed
......@@ -156,12 +156,12 @@ scrape_configs:
- {{ target }}
{% endfor %}
{% for vhost in blackbox_targets[module] | select('mapping') %}
- labels:
vhost: {{ vhost.hostname }}
targets:
{% for target in vhost.targets %}
- targets:
{% for target in vhost.targets %}
- http{{ 's' if vhost.secure }}://{{ target }}
{% endfor %}
{% endfor %}
labels:
vhost: {{ vhost.hostname }}
{% endfor %}
relabel_configs:
- source_labels: [__address__]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment