prometheus/storage/local
beorn7 5bea942d8e Improve various things around chunk encoding.
A number of mostly minor things:

- Rename chunk type -> chunk encoding.

- After all, do not carry around the chunk encoding to all parts of
  the system, but just have one place where the encoding for new
  chunks is set based on the flag. The new approach has caveats as
  well, but the polution of so many method signatures is worse.

- Use the default chunk encoding for new chunks of existing
  series. (Previously, only new _series_ would get chunks with the
  default encoding.)

- Use an enum for chunk encoding. (But keep the version number for the
  flag, for reasons discussed previously.)

- Add encoding() to the chunk interface (so that a chunk knows its own
  encoding - no need to have that in a different top-level function).

- Got rid of newFollowUpChunk (which would keep the existing encoding
  for all chunks of a time series). Now only use newChunk(), which
  will create a chunk encoding according to the flag.

- Simplified transcodeAndAdd.

- Reordered methods of deltaEncodedChunk and doubleDeltaEncoded chunk
  to match the order in the chunk interface.

- Only transcode if the chunk is not yet half full. If more than half
  full, add a new chunk instead.
2015-03-14 19:03:20 +01:00
..
codable Clean up license issues. 2015-01-21 20:07:45 +01:00
flock Use named returns in flock.New. 2015-01-19 14:31:16 +01:00
index Declare storage.local.index-cache-size.* default values as tweaked. 2015-01-29 13:04:54 +01:00
chunk.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
crashrecovery.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
delta.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
delta_helpers.go Make floats exact again. 2015-03-06 17:03:56 +01:00
doubledelta.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
instrumentation.go Fix the embarrassing bug introduced in commit 0851945. 2015-02-26 18:30:33 +01:00
interface.go Simplify AppendSamples by allowing it to be goroutine-unsafe. 2015-02-13 12:13:22 +01:00
locker.go Fix and improve the fp locker. 2014-11-25 17:07:45 +01:00
locker_test.go Fix a few concurrency issues before starting to use the new fp locker. 2014-11-25 17:07:45 +01:00
persistence.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
persistence_test.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
preload.go Clean up license issues. 2015-01-21 20:07:45 +01:00
series.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
storage.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
storage_test.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00
test_helpers.go Improve various things around chunk encoding. 2015-03-14 19:03:20 +01:00