Skip to content

Commit

Permalink
Merge pull request #596 from stackhpc/upstream/2024.1-2024-08-27
Browse files Browse the repository at this point in the history
Synchronise 2024.1 with upstream
  • Loading branch information
markgoddard authored Aug 27, 2024
2 parents d1a0584 + dc601de commit aed005a
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 aed005a

Please sign in to comment.