]> git.openstreetmap.org Git - chef.git/commitdiff
Allow prometheus backup server to acess AWS cache
authorTom Hughes <tom@compton.nu>
Sat, 21 Oct 2023 14:07:22 +0000 (15:07 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 21 Oct 2023 14:07:22 +0000 (15:07 +0100)
cookbooks/prometheus/recipes/server.rb

index 6ea6c9333720e8bb03e84c5b4ad72d3e31229eda..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