Closed pedro-stanaka closed 1 month ago
The remote execution operator uses a vector selector underneath. Could we extract stats from there?
I guess the question is whether we want to eventually bubble up processed samples from remote engines, but this should fix the bug for now.
Pushed one more commit that will properly consume sample statistics from downstream query, it makes bubbling up sample information more precise. Tested with changes from https://github.com/thanos-io/thanos/pull/7361
Summary
Right now the engine will report peak samples (in a single step) and total samples always as the same, because we are using the method
IncrementSamplesAtStep
which will update peak and total with the same value. In this PR I am using both values and calling methods on thestats.QuerySamples
struct directly.