Skip to content

Commit

Permalink
enhancement(prometheus): match any .yml file in /rules
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Kochie <[email protected]>
Signed-off-by: Pavle <[email protected]>
  • Loading branch information
dpavle and SuperQ authored Apr 15, 2024
1 parent 52056c1 commit 3eff65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/prometheus/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ remote_read:
{% if not prometheus_agent_mode and prometheus_alert_rules_files != [] %}
rule_files:
- {{ prometheus_config_dir }}/rules/*.rules
- {{ prometheus_config_dir }}/rules/*.rules.yml
- {{ prometheus_config_dir }}/rules/*.yml
{% endif %}

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

0 comments on commit 3eff65f

Please sign in to comment.