From 0eeeecb549596823e2f2e22e1829a42fa9921fcb Mon Sep 17 00:00:00 2001 From: uumas Date: Thu, 21 Dec 2023 01:19:23 +0200 Subject: [PATCH] prometheus: config cleanup, actually use recording and alerting rules --- roles/prometheus/templates/prometheus.yml.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2 index 1e61dae..21a2ab6 100644 --- a/roles/prometheus/templates/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus.yml.j2 @@ -1,5 +1,7 @@ --- +# {{ ansible_managed }} + # my global config global: scrape_interval: {{ prometheus_scrape_interval }} @@ -16,11 +18,9 @@ alerting: # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: - # - "first_rules.yml" - # - "second_rules.yml" + - "/etc/prometheus/recording/*.yaml" + - "/etc/prometheus/alerting/*.yaml" -# A scrape configuration containing exactly one endpoint to scrape: -# Here it's Prometheus itself. scrape_configs: - job_name: "prometheus" static_configs: