X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1dbda5d6ff8491bc544e44659f369388b77d8645..ab4b82d3ca1eb1be198b331203f3505c4a043b59:/cookbooks/prometheus/recipes/server.rb diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index d16d47fda..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 @@ -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