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: ...@@ -156,12 +156,12 @@ scrape_configs:
- {{ target }} - {{ target }}
{% endfor %} {% endfor %}
{% for vhost in blackbox_targets[module] | select('mapping') %} {% for vhost in blackbox_targets[module] | select('mapping') %}
- labels: - targets:
vhost: {{ vhost.hostname }} {% for target in vhost.targets %}
targets:
{% for target in vhost.targets %}
- http{{ 's' if vhost.secure }}://{{ target }} - http{{ 's' if vhost.secure }}://{{ target }}
{% endfor %} {% endfor %}
labels:
vhost: {{ vhost.hostname }}
{% endfor %} {% endfor %}
relabel_configs: relabel_configs:
- source_labels: [__address__] - 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