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

Prom-client high memory usage #611

Open
shappir opened this issue Feb 6, 2024 · 1 comment
Open

Prom-client high memory usage #611

shappir opened this issue Feb 6, 2024 · 1 comment

Comments

@shappir
Copy link
Contributor

shappir commented Feb 6, 2024

I have a service that uses several histograms, some with high cardinality. As a result, the retained memory size just for those histograms is 25-30MB. I'm hoping that this commit, and this PR will significantly improve the situation.

@shappir
Copy link
Contributor Author

shappir commented Feb 6, 2024

Another cause for the large memory consumption are the long hash key values used: all the label name / value pairs concatenated into a string. Here are possible ways to reduce its size:

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