]> git.openstreetmap.org Git - chef.git/commitdiff
Connect prometheus to alert manager
authorTom Hughes <tom@compton.nu>
Wed, 20 Jan 2021 19:17:39 +0000 (19:17 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Jan 2021 19:48:28 +0000 (19:48 +0000)
cookbooks/prometheus/templates/default/prometheus.yml.erb

index c6ace499b22c8c47511fef36ada4e1a313275991..02c71fefdfa93a2ab23634f8462277ac39e1cb27 100644 (file)
@@ -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