-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Script for indexing micro benchmark results #128557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
1498dd6
7cf6370
969f5d2
a18428c
4fb1639
41941bc
0697c91
3d3e67b
a3e6523
5c2bc3a
b0d70e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
|
|
||
| METRICS_HOST=$(vault read -field=es_host /secret/performance/employees/cloud/esbench-metrics) | ||
| METRICS_INDEX_NAME="dummy-micro-benchmarks" | ||
| METRICS_USERNAME=$(vault read -field=es_username /secret/performance/employees/cloud/esbench-metrics) | ||
| METRICS_PASSWORD=$(vault read -field=es_password /secret/performance/employees/cloud/esbench-metrics) | ||
|
|
||
| jq -c '.[]' "benchmarks/build/result.json" | while read -r doc; do | ||
| curl -s -X POST "https://$METRICS_HOST/$METRICS_INDEX_NAME/_doc" \ | ||
| -u "$METRICS_USERNAME:$METRICS_PASSWORD" \ | ||
|
||
| -H 'Content-Type: application/json' \ | ||
| -d "$doc" | ||
| done | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The index name is temporary and will be replaced with a data stream soon