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

Using all data instead of Reservoir Sampling #759

Open
emlautarom1 opened this issue Jul 28, 2023 · 0 comments
Open

Using all data instead of Reservoir Sampling #759

emlautarom1 opened this issue Jul 28, 2023 · 0 comments

Comments

@emlautarom1
Copy link

According to the official docs:

Histograms measure the statistical distribution of a set of values. In high performance applications it is not possible to keep the entire data stream of a histogram in memory. To work around this reservoir sampling algorithms allow us to maintain a small, manageable reservoir which is statistically representative of an entire data stream.

I'm currently using App.Metrics in a batch-processing application that has a fixed lifetime: starts, performs some actions and measures how long they take, and then prints the resulting metrics.

I know in advance that the amount of data can be kept in memory, so I would like to use a sampling strategy that uses all of it. Is it possible to do this out of the box?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant