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.
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:
Only use the values, not the names. Since the pairs are sorted by name, that will be unique (label names don't add uniqueness)
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.