Skip to content

Commit 1f87510

Browse files
committed
Apply omitted prometheus template bug fix
The patch for prometheus.yml template bug `LP#2076660 <https://bugs.launchpad.net/kolla-ansible/+bug/2076660>`_ was not applied to our template used for friendly network name. This brings the fix to 2023.1 release.
1 parent 110d039 commit 1f87510

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

etc/kayobe/ansible/prometheus.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ scrape_configs:
273273

274274
alerting:
275275
alertmanagers:
276-
- static_configs:
277-
- targets:
276+
- static_configs:
278277
{% for host in groups["prometheus-alertmanager"] %}
278+
- targets:
279279
- '{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host]['prometheus_alertmanager_port'] }}'
280280
{% if hostvars[host].prometheus_instance_label | default(false, true) %}
281281
labels:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
The patch for prometheus.yml template bug
5+
`LP#2076660 <https://bugs.launchpad.net/kolla-ansible/+bug/2076660>`_
6+
was not applied to our template used for friendly network name.
7+
This brings the fix to 2023.1 release.

0 commit comments

Comments
 (0)