]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/backup-data.erb
Add alerts for equinix uplink interfaces
[chef.git] / cookbooks / prometheus / templates / default / backup-data.erb
index a7a1c57250993975925c1d945d824625070583c3..93786a1ada23acfe7ad940b89d45df6e72aa6765 100644 (file)
@@ -2,6 +2,8 @@
 
 # DO NOT EDIT - This file is being maintained by Chef
 
 
 # DO NOT EDIT - This file is being maintained by Chef
 
+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
 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