Skip to content
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

Fix erroneous linear scaling when resampling. #98349

Closed
wants to merge 2 commits into from
Closed

Fix erroneous linear scaling when resampling. #98349

wants to merge 2 commits into from

Conversation

thomasdullien
Copy link
Contributor

The ES profiling plugin does two different sorts of sampling: 1) The sampling rate that is derived from choosing a particular index.
2) An additional sampling rate that is applied if the particular index granularity leads to too many events -- e.g. if the number of events is more than 10% higher than requested, the events are subsampled further.

The client expects the results to not be scaled according to the sample rate, but the current API assumes the client will do the scaling for #1. The server, however, does the scaling for #2.

The "proper" and cleanest way would be to push scaling for both #1 and #2 into the server, and this will be done in a follow-up PR that touches both ES and Kibana. In the meantime, this PR will make sure the UI reports correct data, in case the follow-up PR encounters problems.

@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
5e86f14

Please, read and sign the above mentioned agreement if you want to contribute to this project

@elasticsearchmachine elasticsearchmachine added v8.10.0 needs:triage Requires assignment of a team area label labels Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical needs:triage Requires assignment of a team area label v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants