From: Tom Hughes Date: Sat, 21 Oct 2023 14:07:22 +0000 (+0100) Subject: Allow prometheus backup server to acess AWS cache X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/91fb247ceb61af6754ff2a0d36b6e2c9c7b4b796 Allow prometheus backup server to acess AWS cache --- diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 6ea6c9333..45b60f946 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -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