-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Replace manual rate calculation with rate
agg
#114814
Comments
Pinging @elastic/apm-ui (Team:apm) |
It is substantially slower. I just ran an experiment, indexing 10000 transaction metric documents with 1000 buckets each. I then compared the aggregation using
The first aggregation ( |
For calculating throughput we should use the rate agg.
There is currently a bug causing the rate agg to produce incorrect results for metric documents with a custom
_doc_count
.We can work around this issue by using
rate
agg with"mode": "value_count"
, thus side-stepping doc count entirely. See examples belowTransaction-based
Metrics-based
Considerations
The could be the perf implications of using
"mode": "value_count"
over the custom doc count. Iftransaction.duration.histogram
contains many buckets and we don’t use_doc_count
it will be more expensive.The text was updated successfully, but these errors were encountered: