X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5f38bd2d4357288f7d377b817f5eefe2eab7243f..3a31afdddc4082bd26bc0840ef53c1f77ad75c31:/cookbooks/prometheus/recipes/server.rb?ds=sidebyside diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index d069cd8e7..2ebf5a823 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -184,10 +184,18 @@ template "/etc/prometheus/prometheus.yml" do variables :jobs => jobs end +template "/etc/prometheus/alert_rules.yml" do + source "alert_rules.yml.erb" + owner "root" + group "root" + mode "644" +end + service "prometheus" do action [:enable, :start] subscribes :restart, "template[/etc/default/prometheus]" subscribes :reload, "template[/etc/prometheus/prometheus.yml]" + subscribes :reload, "template[/etc/prometheus/alert_rules.yml]" end template "/etc/default/prometheus-alertmanager" do