X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3c4f3eaeb6715b18911b951f8b704818efb0ce3a..f8a576aca1270f703f38c3257cf533390692de06:/cookbooks/prometheus/templates/default/backup-data.erb?ds=sidebyside diff --git a/cookbooks/prometheus/templates/default/backup-data.erb b/cookbooks/prometheus/templates/default/backup-data.erb index e6dabd4c6..93786a1ad 100644 --- a/cookbooks/prometheus/templates/default/backup-data.erb +++ b/cookbooks/prometheus/templates/default/backup-data.erb @@ -2,7 +2,9 @@ # DO NOT EDIT - This file is being maintained by Chef -SNAPSHOT=$(curl -XPOST http://localhost:9090/prometheus/api/v1/admin/tsdb/snapshot | jq -r .data.name) +set -e + +SNAPSHOT=$(curl -s -XPOST http://localhost:9090/prometheus/api/v1/admin/tsdb/snapshot | jq -r .data.name) /opt/awscli/v2/current/bin/aws --profile osm-prometheus-data-upload s3 sync --storage-class=INTELLIGENT_TIERING --no-progress /var/lib/prometheus/metrics2/snapshots/${SNAPSHOT} s3://openstreetmap-prometheus-data