Skip to content

Commit 0697c91

Browse files
committed
append timestamp field
1 parent 41941bc commit 0697c91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.buildkite/scripts/index-micro-benchmark-results.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
jq -c '.[]' "benchmarks/build/result.json" | while read -r doc; do
44
echo "Indexing $(echo "$doc" | jq -r '.benchmark')"
5+
doc = $doc | jq --arg timestamp "$(date +%s000)" '. + {"@timestamp": $timestamp}'
56
curl -s -X POST "https://$PERF_METRICS_HOST/$PERF_METRICS_INDEX/_doc" \
67
-u "$PERF_METRICS_USERNAME:$PERF_METRICS_PASSWORD" \
78
-H 'Content-Type: application/json' \

0 commit comments

Comments
 (0)