mirror of https://github.com/prometheus/prometheus
Browse Source
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>pull/6511/head
Chris Marchbanks
5 years ago
2 changed files with 6 additions and 20 deletions
Loading…
Reference in new issue