From: Tom Hughes Date: Wed, 20 Jan 2021 19:17:39 +0000 (+0000) Subject: Connect prometheus to alert manager X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/ae22791537841a5ba758384551f9c3b56ad7154c Connect prometheus to alert manager --- 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