Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/send_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ for json_file in results/result*.json; do
echo "Processing $json_file"
cat "$json_file"

echo "Posting $json_file to http://${RESULT_SERVER}/write-api"
echo "Posting $json_file to ${RESULT_SERVER}/write-api"

# Post JSON and capture response
response=$(curl --fail -sS -X POST "http://${RESULT_SERVER}/write-api" \
response=$(curl --fail -sS -X POST "${RESULT_SERVER}/write-api" \
-H "X-API-Key: ${RESULT_SERVER_KEY}" \
-H "Content-Type: application/json" \
--data-binary @"$json_file")
Expand Down Expand Up @@ -54,7 +54,7 @@ for json_file in results/result*.json; do
# Upload TGZ if it exists
if [[ -f "$tgz_file" ]]; then
echo "Uploading $tgz_file with UUID $uuid"
curl --fail -sS -X POST "http://${RESULT_SERVER}/upload-tgz" \
curl --fail -sS -X POST "${RESULT_SERVER}/upload-tgz" \
-H "X-API-Key: ${RESULT_SERVER_KEY}" \
-F "id=${uuid}" \
-F "timestamp=${timestamp}" \
Expand Down