]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/recipes/server.rb
Tighten timeouts and log request timeouts
[chef.git] / cookbooks / prometheus / recipes / server.rb
index d16d47fda8dfb44ea9aa2b56b868bd94907abf60..45b60f946ace102c3921b9b9bbe4f77fe973db04 100644 (file)
@@ -409,7 +409,10 @@ systemd_service "prometheus-backup-data" do
   description "Backup prometheus data to S3"
   user "prometheus"
   exec_start "/usr/local/bin/prometheus-backup-data"
-  read_write_paths "/var/lib/prometheus/metrics2/snapshots"
+  read_write_paths %w[
+    /var/lib/prometheus/.aws
+    /var/lib/prometheus/metrics2/snapshots
+  ]
   sandbox :enable_network => true
 end
 
@@ -417,3 +420,7 @@ systemd_timer "prometheus-backup-data" do
   description "Backup prometheus data to S3"
   on_calendar "03:11"
 end
+
+service "prometheus-backup-data.timer" do
+  action [:enable, :start]
+end