prometheus/storage/remote
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
..
chunked.go remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader (#5703) 2019-08-19 21:16:10 +01:00
chunked_test.go remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader (#5703) 2019-08-19 21:16:10 +01:00
client.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
client_test.go Improve testutil.ErrorEqual (#6471) 2019-12-17 21:11:33 +00:00
codec.go Pushdown aggregator group by through read hint (#6401) 2019-12-05 14:06:28 +00:00
codec_test.go Replaced test validations with testutils on storage/remote/codec_test.go (#6097) 2019-10-07 11:35:53 -06:00
ewma.go Merge the 2.13 release branch to master (#6117) 2019-10-09 17:41:46 +02:00
intern.go Merge the 2.13 release branch to master (#6117) 2019-10-09 17:41:46 +02:00
intern_test.go Review feedback. 2019-03-18 20:31:12 +00:00
max_gauge.go resolve race condition in maxGauge (#5647) 2019-06-13 20:55:08 +01:00
queue_manager.go Use samplesPending rather than integral 2020-01-06 14:53:23 -07:00
queue_manager_test.go Use samplesPending rather than integral 2020-01-06 14:53:23 -07:00
read.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
read_test.go Spelling (#6517) 2020-01-02 15:54:09 +01:00
storage.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
storage_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
write.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
write_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00