X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/6ab5fb9c6d2e0d309835648e78333ed40d654885..09b410b27cd5eae901ae9898835038701513743f:/cookbooks/prometheus/recipes/server.rb diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 2e3ab53ad..f0c4a8821 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -301,6 +301,7 @@ service "prometheus" do action [:enable, :start] subscribes :reload, "template[/etc/prometheus/prometheus.yml]" subscribes :reload, "template[/etc/prometheus/alert_rules.yml]" + subscribes :restart, "archive_file[#{cache_dir}/prometheus.linux-amd64.tar.gz]" end systemd_service "prometheus-alertmanager-executable" do @@ -320,6 +321,7 @@ end service "prometheus-alertmanager" do action [:enable, :start] subscribes :reload, "template[/etc/prometheus/alertmanager.yml]" + subscribes :restart, "archive_file[#{cache_dir}/alertmanager.linux-amd64.tar.gz]" end template "/etc/prometheus/amtool.yml" do @@ -351,6 +353,7 @@ end service "prometheus-karma" do action [:enable, :start] subscribes :reload, "template[/etc/prometheus/karma.yml]" + subscribes :restart, "archive_file[#{cache_dir}/karma-linux-amd64.tar.gz]" end package "grafana-enterprise"