diff --git a/ansible/roles/prometheus/templates/prometheus.yml.j2 b/ansible/roles/prometheus/templates/prometheus.yml.j2 index 85483cc918..053ac4c32e 100644 --- a/ansible/roles/prometheus/templates/prometheus.yml.j2 +++ b/ansible/roles/prometheus/templates/prometheus.yml.j2 @@ -107,7 +107,7 @@ scrape_configs: honor_labels: true static_configs: - targets: - - '{{ kolla_internal_vip_address | put_address_in_context('url') }}:{{ prometheus_openstack_exporter_port }}' + - '{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_openstack_exporter_port }}' {% endif %} {% if enable_prometheus_elasticsearch_exporter | bool %} diff --git a/releasenotes/notes/fix-prom-os-exp-fqdn-efb67c364b653bd9.yaml b/releasenotes/notes/fix-prom-os-exp-fqdn-efb67c364b653bd9.yaml new file mode 100644 index 0000000000..9dcf7ef752 --- /dev/null +++ b/releasenotes/notes/fix-prom-os-exp-fqdn-efb67c364b653bd9.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue where Prometheus would fail to scrape the OpenStack exporter + when using internal TLS with an FQDN. `LP#2008208 + `__