Merge "Fix prometheus.yml templating"
This commit is contained in:
commit
4615f247fc
@ -255,8 +255,8 @@ scrape_configs:
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets:
|
||||
{% 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:
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed an issue with the ``prometheus.yml`` template which would break when
|
||||
deploying alertmanager.
|
Loading…
Reference in New Issue
Block a user