mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
9e24e1f9e8
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> |
||
---|---|---|
.. | ||
remote | ||
tsdb | ||
buffer_test.go | ||
buffer.go | ||
fanout_test.go | ||
fanout.go | ||
interface.go | ||
noop.go |