Skip to content

Commit e985a41

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 fa3cc96 commit e985a41

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixed an issue with the ``prometheus.yml`` template which would break when
5+
deploying alertmanager.

0 commit comments

Comments
 (0)