prometheus/storage/local
beorn7 454ecf3f52 Rework the way ranges and instants are handled
In a way, our instants were also ranges, just with the staleness delta
as range length. They are no treated equally, just that in one case,
the range length is set as range, in the other the staleness
delta. However, there are "real" instants where start and and time of
a query is the same. In those cases, we only want to return a single
value (the one closest before or at the equal start and end time). If
that value is the last sample in the series, odds are we have it
already in the series object. In that case, there is no need to pin or
load any chunks. A special singleSampleSeriesIterator is created for
that. This should greatly speed up instant queries as they happen
frequently for rule evaluations.
2016-02-22 01:47:18 +01:00
..
codable Replace metric.LabelPair with model.LabelPair 2015-08-22 13:32:13 +02:00
fixtures/b0 Add benchmark for loading chunks and chunk descs. 2015-03-19 19:28:21 +01:00
index Fix some dead code, missing error checks, shadowings. 2015-09-14 12:21:34 +02:00
chunk.go Move lastSamplePair method up to memorySeries 2016-02-19 18:16:41 +01:00
crashrecovery.go Switch to common/log 2015-10-03 10:21:43 +02:00
delta.go Return SamplePair istead of *SamplePair consistently 2016-02-19 17:00:40 +01:00
delta_helpers.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
doubledelta.go Return SamplePair istead of *SamplePair consistently 2016-02-19 17:00:40 +01:00
instrumentation.go Add a series ops metric "purge_on_request" 2016-01-11 17:22:16 +01:00
interface.go Rework the way ranges and instants are handled 2016-02-22 01:47:18 +01:00
locker.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
locker_test.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
mapper.go Switch to common/log 2015-10-03 10:21:43 +02:00
mapper_test.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
persistence.go Populate first and last time in the chunk descriptor earlier 2016-02-15 14:06:09 +01:00
persistence_test.go Improve handling of series file truncation 2016-01-11 16:42:10 +01:00
preload.go Rework the way ranges and instants are handled 2016-02-22 01:47:18 +01:00
series.go Rework the way ranges and instants are handled 2016-02-22 01:47:18 +01:00
storage.go Rework the way ranges and instants are handled 2016-02-22 01:47:18 +01:00
storage_test.go Rework the way ranges and instants are handled 2016-02-22 01:47:18 +01:00
test_helpers.go Fix some dead code, missing error checks, shadowings. 2015-09-14 12:21:34 +02:00