mirror of https://github.com/prometheus/prometheus
Browse Source
The size of histogram points are now bigger by 24 bytes due to the custom values slice. When histograms are loaded into partial results in vector selectors we use HPoint type where the size is calculated as (size of histogram + 8 for timestamp)/16.pull/13828/head^2a3d1a46eda/promql/value.go (L176)
When histograms are put into Sample type in range evaluations, the Sample has more overhead and the size is calculated differently: (size of histogram / 16) + 1 for time stamp.a3d1a46eda/promql/engine.go (L1928)
When the size of the histogram is 16k, then the first calculation gives k but the second gives k+1 for the sample count. If the histogram size is 16k+8, then both would give k+1. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
George Krajcsovits
8 months ago
committed by
GitHub
1 changed files with 21 additions and 21 deletions
Loading…
Reference in new issue