prometheus/storage/local
beorn7 ef3ab96111 Populate first and last time in the chunk descriptor earlier
The First time is kind of trivial as we always know it when we create
a new chunkDesc.

The last time is only know when the chunk is closed, so we have to set
it at that time.

The change saves a lot of digging down into the chunk
itself. Especially the last time is relative expensive as it involves
the creation of an iterator. The first time access now doesn't require
locking, which is also a nice gain.
2016-02-15 14:06:09 +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 Populate first and last time in the chunk descriptor earlier 2016-02-15 14:06:09 +01:00
crashrecovery.go Switch to common/log 2015-10-03 10:21:43 +02:00
delta.go Streamline chunk writing 2016-01-25 16:36:36 +01:00
delta_helpers.go Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
doubledelta.go Streamline chunk writing 2016-01-25 16:36:36 +01:00
instrumentation.go Add a series ops metric "purge_on_request" 2016-01-11 17:22:16 +01:00
interface.go Return error on sample appending 2016-02-02 14:01:44 +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 Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
series.go Populate first and last time in the chunk descriptor earlier 2016-02-15 14:06:09 +01:00
storage.go Remove race condition from TestRetentionCutoff 2016-02-12 12:13:19 +01:00
storage_test.go Remove race condition from TestRetentionCutoff 2016-02-12 12:13:19 +01:00
test_helpers.go Fix some dead code, missing error checks, shadowings. 2015-09-14 12:21:34 +02:00