Merge "Fix prometheus.yml templating"
This commit is contained in:
commit
4615f247fc
@ -254,9 +254,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:
|
||||
|
@ -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