prometheus/storage/local
beorn7 b876f8e6a5 Move lastSamplePair method up to memorySeries
This implies a slight change of behavior as only samples added to the
respective instance of a memorySeries are returned. However, this is
most likely anyway what we want.

Following cases:

- Server has been restarted: Given the time it takes to cleanly
  shutdown and start up a server, the series are now stale anyway. An
  improved staleness handling (still to be implemented) will be based
  on tracking if a given target is continuing to expose samples for a
  given time series. In that case, we need a full scrape cycle to
  decide about staleness. So again, it makes sense to consider
  everything stale directly after a server restart.

- Series unarchived due to a read request: The series is definitely
  stale so we don't want to return anything anyway.

- Freshly created time series or series unarchived because of a sample
  append: That happens because appending a sample is imminent. Before
  the fingerprint lock is released, the series will have received a
  sample, and lastSamplePair will always returned the expected value.
2016-02-19 18:16:41 +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 Return SamplePair istead of *SamplePair consistently 2016-02-19 17:00:40 +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 Streamline series iterator creation 2016-02-19 16:24:38 +01:00
series.go Move lastSamplePair method up to memorySeries 2016-02-19 18:16:41 +01:00
storage.go Move lastSamplePair method up to memorySeries 2016-02-19 18:16:41 +01:00
storage_test.go Streamline series iterator creation 2016-02-19 16:24:38 +01:00
test_helpers.go Fix some dead code, missing error checks, shadowings. 2015-09-14 12:21:34 +02:00