From 337e3d1a8b0f6e901213022b63aba8c8b9a5ff66 Mon Sep 17 00:00:00 2001 From: gardar Date: Thu, 31 Oct 2024 16:40:11 +0000 Subject: [PATCH] fix: use yaml rule files https://github.com/prometheus-community/ansible/pull/333 Signed-off-by: gardar --- .circleci/config.yml | 2 -- group_vars/prometheus.yml | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a0ae7e8..befc556 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,8 +61,6 @@ jobs: mkdir rules dashboards cp -v prometheus/documentation/prometheus-mixin/dashboards_out/*.json node_exporter/docs/node-mixin/dashboards_out/*.json dashboards/ cp -v prometheus/documentation/prometheus-mixin/*.yaml node_exporter/docs/node-mixin/*.yaml rules/ - # prometheus ansible role expects rule files to have `.rules` extension - for i in rules/*.yaml; do mv -v $i ${i%yaml}rules; done - persist_to_workspace: root: . paths: diff --git a/group_vars/prometheus.yml b/group_vars/prometheus.yml index 8ce86ed..c9be1bc 100644 --- a/group_vars/prometheus.yml +++ b/group_vars/prometheus.yml @@ -20,7 +20,8 @@ prometheus_alertmanager_config: - "{{ ansible_host | default(inventory_hostname) }}:9093" prometheus_alert_rules_files: - - rules/*.rules + - rules/*.yaml + - rules/*.yml prometheus_alert_rules: - alert: Watchdog