Skip to content

Commit

Permalink
Merge "Fix prometheus.yml templating" into stable/2024.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Aug 26, 2024
2 parents ab2d2b6 + 0f97aa2 commit dc601de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/prometheus/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,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 dc601de

Please sign in to comment.