Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Let prometheus rule_files config always be written (#122)
Browse files Browse the repository at this point in the history
[patch] To be able to add dynamic rules after applying role within some playbook task, the generic rule_files config path should always be written - even if there is no alertmanager or local rules defined.
  • Loading branch information
noraab authored and paulfantom committed Jun 2, 2018
1 parent 9feed4f commit 4575a7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ remote_read:
{{ prometheus_remote_read | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}

{% if prometheus_alertmanager_config != [] and prometheus_alert_rules != [] %}
rule_files:
- {{ prometheus_config_dir }}/rules/*.rules
{% endif %}

{% if prometheus_alertmanager_config | length > 0 %}
alerting:
Expand Down

0 comments on commit 4575a7e

Please sign in to comment.