|
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: | |
| 9 | +prometheus_blackbox_exporter_endpoints_custom: | |
10 | 10 | {% set endpoints = [] %}
|
11 |
| - {% for dict_item in (prometheus_blackbox_exporter_endpoints_kayobe | default([]) + prometheus_blackbox_exporter_endpoints_default) %} |
| 11 | + {% for dict_item in (prometheus_blackbox_exporter_endpoints_kayobe | default([]) + stackhpc_prometheus_blackbox_exporter_endpoints_default) %} |
12 | 12 | {% if dict_item.enabled | bool %}
|
13 | 13 | {% for endpoint in dict_item.endpoints %}
|
14 | 14 | {% set _ = endpoints.append(endpoint) %}
|
15 | 15 | {% endfor %}
|
16 | 16 | {% endif %}
|
17 | 17 | {% endfor %}
|
18 |
| - {{ (endpoints + prometheus_blackbox_exporter_endpoints_custom) | unique | select | list }} |
| 18 | + {{ (endpoints + stackhpc_prometheus_blackbox_exporter_endpoints_custom) | unique | select | list }} |
19 | 19 |
|
20 | 20 | # A list of custom prometheus Blackbox exporter endpoints. Each element should
|
21 | 21 | # have the following format:
|
22 | 22 | # - name:module:endpoint
|
23 | 23 | # for example
|
24 | 24 | # - stackhpc:http_2xx:https://stackhpc.com:443
|
25 |
| -prometheus_blackbox_exporter_endpoints_custom: [] |
| 25 | +stackhpc_prometheus_blackbox_exporter_endpoints_custom: [] |
26 | 26 |
|
27 |
| -prometheus_blackbox_exporter_endpoints_default: |
28 |
| - # OpenStack endpoints |
29 |
| - - endpoints: |
30 |
| - - "barbican:os_endpoint:{{ barbican_public_endpoint }}" |
31 |
| - - "{{ ('barbican_internal:os_endpoint:' + barbican_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
32 |
| - enabled: "{{ enable_barbican | bool }}" |
33 |
| - - endpoints: |
34 |
| - - "blazar:os_endpoint:{{ blazar_public_base_endpoint }}" |
35 |
| - - "{{ ('blazar_internal:os_endpoint:' + blazar_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
36 |
| - enabled: "{{ enable_blazar | bool }}" |
37 |
| - - endpoints: |
38 |
| - - "ceph_rgw:http_2xx:{{ ceph_rgw_public_base_endpoint }}" |
39 |
| - - "{{ ('ceph_rgw_internal:http_2xx:' + ceph_rgw_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
40 |
| - enabled: "{{ enable_ceph_rgw | bool }}" |
41 |
| - - endpoints: |
42 |
| - - "cinder:os_endpoint:{{ cinder_public_base_endpoint }}" |
43 |
| - - "{{ ('cinder_internal:os_endpoint:' + cinder_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
44 |
| - enabled: "{{ enable_cinder | bool }}" |
45 |
| - - endpoints: |
46 |
| - - "cloudkitty:os_endpoint:{{ cloudkitty_public_endpoint }}" |
47 |
| - - "{{ ('cloudkitty_internal:os_endpoint:' + cloudkitty_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
48 |
| - enabled: "{{ enable_cloudkitty | bool }}" |
49 |
| - - endpoints: |
50 |
| - - "designate:os_endpoint:{{ designate_public_endpoint }}" |
51 |
| - - "{{ ('designate_internal:os_endpoint:' + designate_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
52 |
| - enabled: "{{ enable_designate | bool }}" |
53 |
| - - endpoints: |
54 |
| - - "glance:os_endpoint:{{ glance_public_endpoint }}" |
55 |
| - - "{{ ('glance_internal:os_endpoint:' + glance_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
56 |
| - enabled: "{{ enable_glance | bool }}" |
57 |
| - - endpoints: |
58 |
| - - "gnocchi:os_endpoint:{{ gnocchi_public_endpoint }}" |
59 |
| - - "{{ ('gnocchi_internal:os_endpoint:' + gnocchi_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
60 |
| - enabled: "{{ enable_gnocchi | bool }}" |
61 |
| - - endpoints: |
62 |
| - - "heat:os_endpoint:{{ heat_public_base_endpoint }}" |
63 |
| - - "{{ ('heat_internal:os_endpoint:' + heat_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
64 |
| - - "heat_cfn:os_endpoint:{{ heat_cfn_public_base_endpoint }}" |
65 |
| - - "{{ ('heat_cfn_internal:os_endpoint:' + heat_cfn_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
66 |
| - enabled: "{{ enable_heat | bool }}" |
67 |
| - - endpoints: |
68 |
| - - "horizon:http_2xx:{{ horizon_public_endpoint }}" |
69 |
| - - "{{ ('horizon_internal:http_2xx:' + horizon_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
70 |
| - enabled: "{{ enable_horizon | bool }}" |
71 |
| - - endpoints: |
72 |
| - - "ironic:os_endpoint:{{ ironic_public_endpoint }}" |
73 |
| - - "{{ ('ironic_internal:os_endpoint:' + ironic_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
74 |
| - - "ironic_inspector:os_endpoint:{{ ironic_inspector_public_endpoint }}" |
75 |
| - - "{{ ('ironic_inspector_internal:os_endpoint:' + ironic_inspector_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
76 |
| - enabled: "{{ enable_ironic | bool }}" |
77 |
| - - endpoints: |
78 |
| - - "keystone:os_endpoint:{{ keystone_public_url }}" |
79 |
| - - "{{ ('keystone_internal:os_endpoint:' + keystone_internal_url) if not kolla_same_external_internal_vip | bool }}" |
80 |
| - enabled: "{{ enable_keystone | bool }}" |
81 |
| - - endpoints: |
82 |
| - - "magnum:os_endpoint:{{ magnum_public_base_endpoint }}" |
83 |
| - - "{{ ('magnum_internal:os_endpoint:' + magnum_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
84 |
| - enabled: "{{ enable_magnum | bool }}" |
85 |
| - - endpoints: |
86 |
| - - "manila:os_endpoint:{{ manila_public_base_endpoint }}" |
87 |
| - - "{{ ('manila_internal:os_endpoint:' + manila_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
88 |
| - enabled: "{{ enable_manila | bool }}" |
89 |
| - - endpoints: |
90 |
| - - "neutron:os_endpoint:{{ neutron_public_endpoint }}" |
91 |
| - - "{{ ('neutron_internal:os_endpoint:' + neutron_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
92 |
| - enabled: "{{ enable_neutron | bool }}" |
93 |
| - - endpoints: |
94 |
| - - "nova:os_endpoint:{{ nova_public_base_endpoint }}" |
95 |
| - - "{{ ('nova_internal:os_endpoint:' + nova_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
96 |
| - enabled: "{{ enable_nova | bool }}" |
97 |
| - - endpoints: |
98 |
| - - "octavia:os_endpoint:{{ octavia_public_endpoint }}" |
99 |
| - - "{{ ('octavia_internal:os_endpoint:' + octavia_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
100 |
| - enabled: "{{ enable_octavia | bool }}" |
101 |
| - - endpoints: |
102 |
| - - "placement:os_endpoint:{{ placement_public_endpoint }}" |
103 |
| - - "{{ ('placement_internal:os_endpoint:' + placement_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
104 |
| - enabled: "{{ enable_placement | bool }}" |
105 |
| - - endpoints: |
106 |
| - - "swift:os_endpoint:{{ swift_public_base_endpoint }}" |
107 |
| - - "{{ ('swift_internal:os_endpoint:' + swift_internal_base_endpoint) if not kolla_same_external_internal_vip | bool }}" |
108 |
| - enabled: "{{ enable_swift | bool }}" |
109 |
| - # Additional service endpoints |
110 |
| - - endpoints: "{% set etcd_endpoints = [] %}{% for host in groups.get('etcd', []) %}{{ etcd_endpoints.append('etcd_' + host.replace('-', '') + ':http_2xx:' + hostvars[host]['etcd_protocol'] + '://' + ('api' | kolla_address(host) | put_address_in_context('url')) + ':' + hostvars[host]['etcd_client_port'] + '/metrics')}}{% endfor %}{{ etcd_endpoints }}" |
111 |
| - enabled: "{{ enable_etcd | bool }}" |
112 |
| - - endpoints: |
113 |
| - - "grafana:http_2xx:{{ grafana_public_endpoint }}" |
114 |
| - - "{{ ('grafana_internal:http_2xx:' + grafana_internal_endpoint) if not kolla_same_external_internal_vip | bool }}" |
115 |
| - enabled: "{{ enable_grafana | bool }}" |
116 |
| - - endpoints: |
117 |
| - - "opensearch:http_2xx:{{ opensearch_internal_endpoint }}" |
118 |
| - enabled: "{{ enable_opensearch | bool }}" |
119 |
| - - endpoints: |
120 |
| - - "opensearch_dashboards_external:http_2xx_opensearch_dashboards:{{ opensearch_dashboards_external_endpoint }}/api/status" |
121 |
| - enabled: "{{ enable_opensearch_dashboards_external | bool }}" |
122 |
| - - endpoints: |
123 |
| - - "opensearch_dashboards:http_2xx_opensearch_dashboards:{{ opensearch_dashboards_internal_endpoint }}/api/status" |
124 |
| - enabled: "{{ enable_opensearch_dashboards | bool }}" |
125 |
| - - endpoints: |
126 |
| - - "prometheus:http_2xx_prometheus:{{ prometheus_public_endpoint if enable_prometheus_server_external else prometheus_internal_endpoint }}/-/healthy" |
127 |
| - enabled: "{{ enable_prometheus | bool }}" |
128 |
| - - endpoints: |
129 |
| - - "prometheus_alertmanager:http_2xx_alertmanager:{{ prometheus_alertmanager_public_endpoint if enable_prometheus_alertmanager_external else prometheus_alertmanager_internal_endpoint }}" |
130 |
| - enabled: "{{ enable_prometheus_alertmanager | bool }}" |
131 |
| - - endpoints: "{% set rabbitmq_endpoints = [] %}{% for host in groups.get('rabbitmq', []) %}{{ rabbitmq_endpoints.append('rabbitmq_' + host.replace('-', '') + (':tls_connect:' if rabbitmq_enable_tls | bool else ':tcp_connect:') + ('api' | kolla_address(host) | put_address_in_context('url')) + ':' + hostvars[host]['rabbitmq_port'] ) }}{% endfor %}{{ rabbitmq_endpoints }}" |
132 |
| - enabled: "{{ enable_rabbitmq | bool }}" |
133 |
| - - endpoints: "{% set redis_endpoints = [] %}{% for host in groups.get('redis', []) %}{{ redis_endpoints.append('redis_' + host.replace('-', '') + ':tcp_connect:' + ('api' | kolla_address(host) | put_address_in_context('url')) + ':' + hostvars[host]['redis_port']) }}{% endfor %}{{ redis_endpoints }}" |
134 |
| - enabled: "{{ enable_redis | bool }}" |
| 27 | +stackhpc_prometheus_blackbox_exporter_endpoints_default: |
135 | 28 | # Backend endpoints
|
136 | 29 | - endpoints: "{% set barbican_endpoints = [] %}{% for host in groups.get('barbican-api', []) %}{{ barbican_endpoints.append('barbican_backend_' + host.replace('-', '') + ':os_endpoint:' + ('https' if kolla_enable_tls_backend | bool else 'http') + '://' + ('api' | kolla_address(host) | put_address_in_context('url')) + ':' + hostvars[host]['barbican_api_port']) }}{% endfor %}{{ barbican_endpoints }}"
|
137 | 30 | enabled: "{{ enable_barbican | bool }}"
|
@@ -171,38 +64,3 @@ prometheus_blackbox_exporter_endpoints_default:
|
171 | 64 | enabled: "{{ enable_ironic | bool }}"
|
172 | 65 | - endpoints: "{% set swift_endpoints = [] %}{% for host in groups.get('swift-api', []) %}{{ swift_endpoints.append('swift_backend_' + host.replace('-', '') + ':os_endpoint:' + 'http://' + ('api' | kolla_address(host) | put_address_in_context('url')) + ':' + hostvars[host]['swift_api_port']) }}{% endfor %}{{ swift_endpoints }}"
|
173 | 66 | enabled: "{{ enable_swift | bool }}"
|
174 |
| - |
175 |
| -# Ensure service endpoints are defined |
176 |
| -blazar_internal_base_endpoint: "{{ blazar_internal_fqdn | kolla_url(internal_protocol, blazar_api_port) }}" |
177 |
| -blazar_public_base_endpoint: "{{ blazar_external_fqdn | kolla_url(public_protocol, blazar_api_public_port) }}" |
178 |
| -ceph_rgw_internal_base_endpoint: "{{ ceph_rgw_internal_fqdn | kolla_url(internal_protocol, ceph_rgw_port) }}" |
179 |
| -ceph_rgw_public_base_endpoint: "{{ ceph_rgw_external_fqdn | kolla_url(public_protocol, ceph_rgw_public_port) }}" |
180 |
| -cinder_internal_base_endpoint: "{{ cinder_internal_fqdn | kolla_url(internal_protocol, cinder_api_port) }}" |
181 |
| -cinder_public_base_endpoint: "{{ cinder_external_fqdn | kolla_url(public_protocol, cinder_api_public_port) }}" |
182 |
| -cloudkitty_internal_endpoint: "{{ cloudkitty_internal_fqdn | kolla_url(internal_protocol, cloudkitty_api_port) }}" |
183 |
| -cloudkitty_public_endpoint: "{{ cloudkitty_external_fqdn | kolla_url(public_protocol, cloudkitty_api_public_port) }}" |
184 |
| -gnocchi_internal_endpoint: "{{ gnocchi_internal_fqdn | kolla_url(internal_protocol, gnocchi_api_port) }}" |
185 |
| -gnocchi_public_endpoint: "{{ gnocchi_external_fqdn | kolla_url(public_protocol, gnocchi_api_public_port) }}" |
186 |
| -grafana_public_endpoint: "{{ grafana_external_fqdn | kolla_url(public_protocol, grafana_server_public_port) }}" |
187 |
| -heat_cfn_internal_base_endpoint: "{{ heat_cfn_internal_fqdn | kolla_url(internal_protocol, heat_api_cfn_port) }}" |
188 |
| -heat_cfn_public_base_endpoint: "{{ heat_cfn_external_fqdn | kolla_url(public_protocol, heat_api_cfn_public_port) }}" |
189 |
| -heat_internal_base_endpoint: "{{ heat_internal_fqdn | kolla_url(internal_protocol, heat_api_port) }}" |
190 |
| -heat_public_base_endpoint: "{{ heat_external_fqdn | kolla_url(public_protocol, heat_api_public_port) }}" |
191 |
| -horizon_public_endpoint: "{{ horizon_external_fqdn | kolla_url(public_protocol, horizon_tls_port if kolla_enable_tls_external | bool else horizon_port) }}" |
192 |
| -ironic_inspector_internal_endpoint: "{{ ironic_inspector_internal_fqdn | kolla_url(internal_protocol, ironic_inspector_port) }}" |
193 |
| -ironic_inspector_public_endpoint: "{{ ironic_inspector_external_fqdn | kolla_url(public_protocol, ironic_inspector_public_port) }}" |
194 |
| -magnum_internal_base_endpoint: "{{ magnum_internal_fqdn | kolla_url(internal_protocol, magnum_api_port) }}" |
195 |
| -magnum_public_base_endpoint: "{{ magnum_external_fqdn | kolla_url(public_protocol, magnum_api_public_port) }}" |
196 |
| -manila_internal_base_endpoint: "{{ manila_internal_fqdn | kolla_url(internal_protocol, manila_api_port) }}" |
197 |
| -manila_public_base_endpoint: "{{ manila_external_fqdn | kolla_url(public_protocol, manila_api_public_port) }}" |
198 |
| -nova_internal_base_endpoint: "{{ nova_internal_fqdn | kolla_url(internal_protocol, nova_api_port) }}" |
199 |
| -nova_public_base_endpoint: "{{ nova_external_fqdn | kolla_url(public_protocol, nova_api_public_port) }}" |
200 |
| -opensearch_dashboards_external_endpoint: "{{ opensearch_dashboards_external_fqdn | default(kolla_external_fqdn) | kolla_url(public_protocol, opensearch_dashboards_port_external) }}" |
201 |
| -opensearch_dashboards_internal_endpoint: "{{ opensearch_dashboards_internal_fqdn | default(kolla_internal_fqdn) | kolla_url(internal_protocol, opensearch_dashboards_port) }}" |
202 |
| -placement_internal_endpoint: "{{ placement_internal_fqdn | kolla_url(internal_protocol, placement_api_port) }}" |
203 |
| -placement_public_endpoint: "{{ placement_external_fqdn | kolla_url(public_protocol, placement_api_public_port) }}" |
204 |
| -prometheus_alertmanager_internal_endpoint: "{{ prometheus_alertmanager_internal_fqdn | kolla_url(internal_protocol, prometheus_alertmanager_port) }}" |
205 |
| -prometheus_alertmanager_public_endpoint: "{{ prometheus_alertmanager_external_fqdn | kolla_url(public_protocol, prometheus_alertmanager_public_port) }}" |
206 |
| -prometheus_internal_endpoint: "{{ prometheus_internal_fqdn | kolla_url(internal_protocol, prometheus_port) }}" |
207 |
| -prometheus_public_endpoint: "{{ prometheus_external_fqdn | kolla_url(public_protocol, prometheus_public_port) }}" |
208 |
| -swift_public_base_endpoint: "{{ swift_external_fqdn | kolla_url(public_protocol, swift_proxy_server_port) }}" |
0 commit comments