Fix expose prometheus externally with single frontend

Closes-Bug: #2043831
Change-Id: I010fabd255d93d5329de82af2b5d21c8fa7d93c4
This commit is contained in:
Will Szumski 2023-11-17 18:18:03 +00:00 committed by Michal Nasiadka
parent 48db509042
commit 2c9dc5da03
3 changed files with 8 additions and 0 deletions

View File

@ -573,6 +573,7 @@ placement_api_public_port: "{{ haproxy_single_external_frontend_public_port if h
prometheus_external_fqdn: "{{ kolla_external_fqdn }}"
prometheus_internal_fqdn: "{{ kolla_internal_fqdn }}"
prometheus_port: "9091"
prometheus_listen_port: "{{ prometheus_port }}"
prometheus_public_port: "{{ haproxy_single_external_frontend_public_port if haproxy_single_external_frontend | bool else prometheus_port }}"
prometheus_node_exporter_port: "9100"
prometheus_mysqld_exporter_port: "9104"

View File

@ -18,7 +18,9 @@ prometheus_services:
enabled: "{{ enable_prometheus_server_external | bool }}"
mode: "http"
external: true
external_fqdn: "{{ prometheus_external_fqdn }}"
port: "{{ prometheus_public_port }}"
listen_port: "{{ prometheus_listen_port }}"
active_passive: "{{ prometheus_active_passive | bool }}"
prometheus-node-exporter:
container_name: prometheus_node_exporter

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue when using ``enable_prometheus_server_external`` in
conjunction with ``haproxy_single_external_frontend``.