From 3c6931f86fa0e9ad5a9b5fec9d2d9c67bed49a5d Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 24 Oct 2020 13:13:53 +0900 Subject: [PATCH] Monitor all the config files under `/etc/prometheus.d/alerts`. --- cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml index eed558e..aed8def 100644 --- a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml +++ b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml @@ -13,9 +13,7 @@ global: rule_files: # - "first.rules" # - "second.rules" - - '/etc/prometheus.d/alerts/node_exporter.yml' - - '/etc/prometheus.d/alerts/filestat.yml' - - '/etc/prometheus.d/alerts/prometheus.yml' + - '/etc/prometheus.d/alerts/*.yml' # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself.