File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
etc/kayobe/kolla/inventory/group_vars Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 6
6
# prometheus_blackbox_exporter_endpoints_kayobe is another set of default
7
7
# endpoints that are templated by Kayobe rather than Kolla Ansible. See
8
8
# kolla/globals.yml for more details.
9
- prometheus_blackbox_exporter_endpoints: >-
10
- {{ (prometheus_blackbox_exporter_endpoints_kayobe | default([]) +
11
- prometheus_blackbox_exporter_endpoints_default) |
12
- selectattr('enabled', 'true') |
13
- map(attribute='endpoints') | flatten |
14
- union(prometheus_blackbox_exporter_endpoints_custom) |
15
- unique | select | list }}
9
+ prometheus_blackbox_exporter_endpoints: |
10
+ {% set endpoints = [] %}
11
+ {% for dict_item in (prometheus_blackbox_exporter_endpoints_kayobe | default([]) + prometheus_blackbox_exporter_endpoints_default) %}
12
+ {% if dict_item.enabled | bool %}
13
+ {% for endpoint in dict_item.endpoints %}
14
+ {% set _ = endpoints.append(endpoint) %}
15
+ {% endfor %}
16
+ {% endif %}
17
+ {% endfor %}
18
+ {{ (endpoints + prometheus_blackbox_exporter_endpoints_custom) | unique }}
16
19
17
20
# A list of custom prometheus Blackbox exporter endpoints. Each element should
18
21
# have the following format:
You can’t perform that action at this time.
0 commit comments