mirror of https://github.com/prometheus/prometheus
Fix LabelValueStats in posting stats (#12342)
Problem: LabelValueStats - This will provide a list of the label names and memory used in bytes. It is calculated by adding the length of all values for a given label name. But internally Prometheus stores the name and the value independently for each series. Solution: MemPostings struct maintains the values to seriesRef map which is used to get the number of series which contains the label values. Using that LabelValueStats is calculated as: seriesCnt * len(value name) Signed-off-by: Baskar Shanmugam <baskar.shanmugam.career@gmail.com>pull/12380/head
parent
e53478a08d
commit
f731a90a7f
Loading…
Reference in new issue