mirror of https://github.com/grafana/loki
Estimate chunk size on compaction looking at data uncompressed size (#9099)
**What this PR does / why we need it**: At `compactedIndex.ToIndexFile` we were not computing the size of the chunk correctly. We were looking at the size of the chunk ref. Since the size of the chunk ref is always a bunk of bytes, the chunk meta KB field would always be 0.pull/9035/head^24e893a0a88/pkg/storage/stores/tsdb/compactor.go (L367)
Instead, we should get the approx KBs by looking at the chunks data uncompressed size. As we do at `store.IndexChunk`:d405162516/pkg/storage/stores/tsdb/store.go (L189)
parent
b82ad11f92
commit
fd5d78784f
Loading…
Reference in new issue