]> git.openstreetmap.org Git - chef.git/commitdiff
Silence curl progress messages
authorTom Hughes <tom@compton.nu>
Sat, 21 Oct 2023 14:06:25 +0000 (15:06 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 21 Oct 2023 14:06:25 +0000 (15:06 +0100)
cookbooks/prometheus/templates/default/backup-data.erb

index e6dabd4c6ab7186f3eb9db9bd00657a4f892f25f..a7a1c57250993975925c1d945d824625070583c3 100644 (file)
@@ -2,7 +2,7 @@
 
 # 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)
+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