Skip to content

benchmark: Add index-benchmark-results target#8011

Merged
marclop merged 2 commits intoelastic:mainfrom
marclop:f/benchmark-add-index-benchmark-result-target-split-go-make
May 4, 2022
Merged

benchmark: Add index-benchmark-results target#8011
marclop merged 2 commits intoelastic:mainfrom
marclop:f/benchmark-add-index-benchmark-result-target-split-go-make

Conversation

@marclop
Copy link
Copy Markdown
Contributor

@marclop marclop commented Apr 29, 2022

Motivation/summary

Adds a new makefile target to the testing/benchmark workspace with a
set of GOBENCH_<FLAG> variables that can be set to index the benchmark
results to an Elasticsearch cluster that isn't the default (localhost).

To re-use the existing makefile targets that set up the Go build env and
command dependencies, a new go.make has been introduced which is now
included by the main Makefile and testing/benchmark/Makefile.

Checklist

- [ ] Update CHANGELOG.asciidoc
- [ ] Update package changelog.yml (only if changes to apmpackage have been made)

  • Documentation has been updated

How to test these changes

  1. docker-compose up -d && cd testing/benchmark && make. (Creates a new deployment in ESS).
  2. make run-benchmark BENCHMARK_TIME=30s BENCHMARK_COUNT=1
  3. make index-benchmark-results.
  4. Create a new Index pattern in Kibana (Stack Management > Kibana > Data View > gobench*)
  5. Navigate to Discover and verify that the documents are indexed.

Related issues

Closes #7856

Adds a new makefile target to the `testing/benchmark` workspace with a
set of `GOBENCH_<FLAG>` variables that can be set to index the benchmark
results to an Elasticsearch cluster that isn't the default (localhost).

To re-use the existing makefile targets that set up the Go build env and
command dependencies, a new `go.make` has been introduced which is now
included by the main `Makefile` and `testing/benchmark/Makefile`.

Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
@marclop marclop added benchmarking backport-skip Skip notification from the automated backport with mergify labels Apr 29, 2022
@marclop marclop requested a review from a team April 29, 2022 06:18
@ghost
Copy link
Copy Markdown

ghost commented Apr 29, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-05-04T04:51:51.175+0000

  • Duration: 25 min 9 sec

Test stats 🧪

Test Results
Failed 0
Passed 3981
Skipped 13
Total 3994

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /hey-apm : Run the hey-apm benchmark.

  • /package : Generate and publish the docker images.

  • /test windows : Build & tests on Windows.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@ghost
Copy link
Copy Markdown

ghost commented Apr 29, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (43/43) 💚
Files 91.878% (181/197) 👍
Classes 93.407% (425/455) 👍
Methods 89.283% (1083/1213) 👍
Lines 77.382% (13151/16995) 👍
Conditionals 100.0% (0/0) 💚

@marclop marclop added the v8.3.0 label Apr 29, 2022
@marclop marclop enabled auto-merge (squash) May 4, 2022 04:51
@marclop marclop merged commit 29501bb into elastic:main May 4, 2022
@marclop marclop deleted the f/benchmark-add-index-benchmark-result-target-split-go-make branch May 4, 2022 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-skip Skip notification from the automated backport with mergify benchmarking v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

benchmark: Index apmbench results with gobench

2 participants