diff --git a/ansible/roles/prometheus/templates/prometheus.yml.j2 b/ansible/roles/prometheus/templates/prometheus.yml.j2 index cd36d72880..1346badb2e 100644 --- a/ansible/roles/prometheus/templates/prometheus.yml.j2 +++ b/ansible/roles/prometheus/templates/prometheus.yml.j2 @@ -97,6 +97,9 @@ scrape_configs: - job_name: openstack_exporter scrape_interval: {{ prometheus_openstack_exporter_interval }} scrape_timeout: {{ prometheus_openstack_exporter_timeout }} +{% if kolla_enable_tls_internal | bool %} + scheme: https +{% endif %} honor_labels: true static_configs: - targets: diff --git a/releasenotes/notes/fix-openstack-exporter-tls-bug-1975598.yml b/releasenotes/notes/fix-openstack-exporter-tls-bug-1975598.yml new file mode 100644 index 0000000000..27c7da33cc --- /dev/null +++ b/releasenotes/notes/fix-openstack-exporter-tls-bug-1975598.yml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Fixes an issue where the prometheus server does not + talk via https to openstack exporter via haproxy + when TLS is enable on the internal endpoints. + `LP#[1975598] + `__