-
Notifications
You must be signed in to change notification settings - Fork 5
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
Parse apmbench results, add ES basicauth #1
Parse apmbench results, add ES basicauth #1
Conversation
Updates the benchmark parsing to allow to optionally parse the extra metrics that are published by apmbench. Modified the Elasticsearch request handling slightly to allow us to authenticate using basicauth and also work with versions of the stack `8.0.0+`. Last, created a Go module to allow the project to work with newer Go versions. Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
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.
Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
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.
Thanks for the updates, looks great!
Later on I think it would be great if we could look at removing well known units from the metric names, and instead set them as field metadata for automatically selecting the default formatter in Lens.
I wasn't aware that the mappings were now able to specify all of that, but it looks worth looking into. I will open a follow up issue on this repo which we can come back to. |
Description
Updates the benchmark parsing to allow to optionally parse the extra
metrics that are published by apmbench. Modified the Elasticsearch
request handling slightly to allow us to authenticate using basicauth
and also work with versions of the stack
8.0.0+
.Last, created a Go module to allow the project to work with newer Go
versions.
How to test this changes
cat testdata/benchmark-result.txt| go run main.go -es http://localhost:9200 -es-username admin -es-password changeme -tag "apm-server_version=8.1.2,size=4096
.gobench
index with the right mappings, and that theextra_metrics
fields are all indexed asfloat
.index_all.sh
from https://gist.github.com/marclop/914c5ebcd53b4ba403066cebc39bf644.Related issues
Part or elastic/apm-server#7540