2018-11-30 06:46:16 -08:00
## master / unreleased
2019-01-18 00:42:59 -08:00
2019-01-23 05:46:58 -08:00
- [CHANGE] `prometheus_tsdb_storage_blocks_bytes_total` is now `prometheus_tsdb_storage_blocks_bytes`
2019-01-18 00:42:59 -08:00
## 0.4.0
2018-12-18 10:56:51 -08:00
- [CHANGE] New `WALSegmentSize` option to override the `DefaultOptions.WALSegmentSize` . Added to allow using smaller wal files. For example using tmpfs on a RPI to minimise the SD card wear out from the constant WAL writes. As part of this change the `DefaultOptions.WALSegmentSize` constant was also exposed.
2019-01-18 00:35:16 -08:00
- [CHANGE] Empty blocks are not written during compaction [#374 ](https://github.com/prometheus/tsdb/pull/374 )
2019-01-16 02:03:52 -08:00
- [FEATURE] Size base retention through `Options.MaxBytes` . As part of this change:
- added new metrics - `prometheus_tsdb_storage_blocks_bytes_total` , `prometheus_tsdb_size_retentions_total` , `prometheus_tsdb_time_retentions_total`
- new public interface `SizeReader: Size() int64`
- `OpenBlock` signature changed to take a logger.
2018-12-28 10:13:02 -08:00
- [REMOVED] `PrefixMatcher` is considered unused so was removed.
2018-12-28 09:42:46 -08:00
- [CLEANUP] `Options.WALFlushInterval` is removed as it wasn't used anywhere.
2019-01-16 10:09:08 -08:00
- [FEATURE] Add new `LiveReader` to WAL pacakge. Added to allow live tailing of a WAL segment, used by Prometheus Remote Write after refactor. The main difference between the new reader and the existing `Reader` is that for `LiveReader` a call to `Next()` that returns false does not mean that there will never be more data to read.
2018-12-13 06:02:32 -08:00
## 0.3.1
2018-12-28 09:42:46 -08:00
- [BUGFIX] Fixed most windows test and some actual bugs for unclosed file readers.
2018-12-13 06:02:32 -08:00
2018-12-04 05:50:11 -08:00
## 0.3.0
- [CHANGE] `LastCheckpoint()` used to return just the segment name and now it returns the full relative path.
- [CHANGE] `NewSegmentsRangeReader()` can now read over miltiple wal ranges by using the new `SegmentRange{}` struct.
- [CHANGE] `CorruptionErr{}` now also exposes the Segment `Dir` which is added when displaying any errors.
- [CHANGE] `Head.Init()` is changed to `Head.Init(minValidTime int64)`
- [CHANGE] `SymbolTable()` renamed to `SymbolTableSize()` to make the name consistent with the `Block{ symbolTableSize uint64 }` field.
- [CHANGE] `wal.Reader{}` now exposes `Segment()` for the current segment being read and `Offset()` for the current offset.
2018-12-28 09:06:12 -08:00
-[FEATURE] tsdbutil analyze subcomand to find churn, high cardinality, etc.