Skip to content
Snippets Groups Projects
Commit 4307e244 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix Prometheus template generation"

parents 6c297e54 991bdc5f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ global:
external_labels:
monitor: 'kolla'
{% if prometheus_alert_rules is defined and prometheus_alert_rules.files | length > 0 %}
{% if prometheus_alert_rules.files is defined and prometheus_alert_rules.files | length > 0 %}
rule_files:
{% for rule in prometheus_alert_rules.files %}
- "/etc/prometheus/{{ rule.path | basename }}"
......
---
fixes:
- |
Fixes templating of Prometheus configuration when Alertmanager is disabled.
In a deployment where Prometheus is enabled and Alertmanager is disabled the
configuration for the Prometheus will fail when templating as the variable
`prometheus_alert_rules` does not contain the key `files`. For details
please see <https://bugs.launchpad.net/kolla-ansible/+bug/1854540>`__.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment