Merge "Fix expose prometheus externally with single frontend"

This commit is contained in:
Zuul 2023-11-27 09:54:47 +00:00 committed by Gerrit Code Review
commit 5472fa729a
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``.