From ae22791537841a5ba758384551f9c3b56ad7154c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 20 Jan 2021 19:17:39 +0000 Subject: [PATCH] Connect prometheus to alert manager --- .../prometheus/templates/default/prometheus.yml.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cookbooks/prometheus/templates/default/prometheus.yml.erb b/cookbooks/prometheus/templates/default/prometheus.yml.erb index c6ace499b..02c71fefd 100644 --- a/cookbooks/prometheus/templates/default/prometheus.yml.erb +++ b/cookbooks/prometheus/templates/default/prometheus.yml.erb @@ -4,6 +4,15 @@ global: scrape_interval: 15s evaluation_interval: 15s +alerting: + alertmanagers: + - static_configs: + - targets: + - localhost:9093 + +rule_files: + - /etc/prometheus/*_rules.yml + scrape_configs: - job_name: prometheus scrape_interval: 5s -- 2.39.5