prometheus/storage
Callum Styan 5f1be2cf45 Refactor calculateDesiredShards + don't reshard if we're having issues sending samples. (#6111)
* Refactor calculateDesiredShards + don't reshard if we're having issues
sending samples.
* Track lastSendTimestamp via an int64 with atomic add/load, add a test
for reshard calculation.
* Simplify conditional for skipping resharding, add samplesIn/Out to shard
testcase struct.

Signed-off-by: Callum Styan <callumstyan@gmail.com>
2019-10-21 15:54:25 -06:00
..
remote Refactor calculateDesiredShards + don't reshard if we're having issues sending samples. (#6111) 2019-10-21 15:54:25 -06:00
tsdb Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
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
buffer_test.go Replaced t.Fatalf() with testutil.Assert() in buffer_test.go (#6084) 2019-10-02 06:28:08 +01:00
fanout.go Add storage.Warnings to LabelValues and LabelNames (#5673) 2019-06-17 08:31:17 +01:00
fanout_test.go Remove all usages of stretchr/testify 2019-08-08 19:49:27 -06:00
interface.go Add storage.Warnings to LabelValues and LabelNames (#5673) 2019-06-17 08:31:17 +01:00
noop.go Add storage.Warnings to LabelValues and LabelNames (#5673) 2019-06-17 08:31:17 +01:00