prometheus/storage
Chris Marchbanks 9e24e1f9e8 Use samplesPending rather than integral
The integral accumulator in the remote write sharding code is just a
second way of keeping track of the number of samples pending. Remove
integralAccumulator and use the samplesPending value we already
calculate to calculate the number of shards.

This has the added benefit of fixing a bug where the integralAccumulator
was not being initialized correctly due to not taking into account the
number of ticks being counted, causing the integralAccumulator initial
value to be off by an order of magnitude in some cases.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2020-01-06 14:53:23 -07:00
..
remote Use samplesPending rather than integral 2020-01-06 14:53:23 -07:00
tsdb Port tsdb to use pkg/labels. (#6326) 2019-11-18 11:53:33 -08:00
buffer_test.go Replaced t.Fatalf() with testutil.Assert() in buffer_test.go (#6084) 2019-10-02 06:28:08 +01:00
buffer.go Minor optimization for BufferedSeriesIterator: actually drop the samples falling outside of the new delta from the underlying sampleRing, when ReduceDelta is called. (#4849) 2018-12-18 11:25:45 +00:00
fanout_test.go Remove all usages of stretchr/testify 2019-08-08 19:49:27 -06:00
fanout.go Add storage.Warnings to LabelValues and LabelNames (#5673) 2019-06-17 08:31:17 +01:00
interface.go Pushdown aggregator group by through read hint (#6401) 2019-12-05 14:06:28 +00:00
noop.go Add storage.Warnings to LabelValues and LabelNames (#5673) 2019-06-17 08:31:17 +01:00