Fix IPv6 addresses for prometheus exporters

Ensure that IPv6 listen addresses for libvirt-exporter and
fluentd prometheus exporter are formatted correctly by
passing them through put_address_in_context as with other
prometheus exporters.

Closes-Bug: #2096659
Change-Id: Ib035534e2d1a27d5f496cfc6fa1d24a3dbe1dd41
This commit is contained in:
Matt Anson 2025-01-24 12:28:13 +00:00
parent dd18ffe098
commit 725d15173e
3 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<source>
@type prometheus
bind {{ api_interface_address }}
bind "{{ api_interface_address | put_address_in_context('url') }}"
port {{ prometheus_fluentd_integration_port }}
metrics_path /metrics
</source>

View File

@ -1,5 +1,5 @@
{
"command": "/opt/libvirt-exporter --web.listen-address={{ api_interface_address }}:{{ prometheus_libvirt_exporter_port }}",
"command": "/opt/libvirt-exporter --web.listen-address={{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_libvirt_exporter_port }}",
"config_files": [
{% if kolla_copy_ca_into_containers | bool %}
{

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Correctly formats prometheus-libvirt-exporter and
Fluentd Prometheus exporter IPv6 listen addresses.
Fixes `LP#2096659
<https://bugs.launchpad.net/kolla-ansible/+bug/2096659>`__