diff --git a/pkg/storage/ingest/fetcher.go b/pkg/storage/ingest/fetcher.go index 96d3c8e8f62..5f8e6f0b7ae 100644 --- a/pkg/storage/ingest/fetcher.go +++ b/pkg/storage/ingest/fetcher.go @@ -863,6 +863,10 @@ func (r *concurrentFetchers) start(ctx context.Context, startOffset int64, concu // When there isn't a fetch in flight the HWM will never be updated, we will dispatch the next fetchWant even if that means it's above the HWM. dispatchNextWant = wants } + + // Periodically update our estimation, so it's exported as a metric. + r.estimatedBytesPerRecord.Store(int64(nextFetch.estimatedBytesPerRecord)) + select { case <-r.done: return