From 3eff65f47d873c6af98c7dccc029b812c58c16da Mon Sep 17 00:00:00 2001 From: Pavle <17710777+dpavle@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:45:48 +0200 Subject: [PATCH] enhancement(prometheus): match any .yml file in /rules Co-authored-by: Ben Kochie Signed-off-by: Pavle <17710777+dpavle@users.noreply.github.com> --- roles/prometheus/templates/prometheus.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2 index 201ab35ca..1cc8a95e7 100644 --- a/roles/prometheus/templates/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus.yml.j2 @@ -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 %}