Skip to content

Commit

Permalink
Apply omitted prometheus template bug fix
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seunghun1ee committed Jan 17, 2025
1 parent fa3cc96 commit e985a41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/kayobe/ansible/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ scrape_configs:

alerting:
alertmanagers:
- static_configs:
- targets:
- static_configs:
{% for host in groups["prometheus-alertmanager"] %}
- targets:
- '{{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{{ hostvars[host]['prometheus_alertmanager_port'] }}'
{% if hostvars[host].prometheus_instance_label | default(false, true) %}
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Fixed an issue with the ``prometheus.yml`` template which would break when
deploying alertmanager.

0 comments on commit e985a41

Please sign in to comment.