forked from prometheus-junkyard/tsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from krasi-georgiev/pull/374-review
Pull/374 review
- Loading branch information
Showing
34 changed files
with
1,101 additions
and
756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
## master / unreleased | ||
- [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. | ||
- [CHANGE] Empty blocks are not written during compaction [#374](https://github.com/prometheus/tsdb/pull/374) | ||
- [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. | ||
- [REMOVED] `PrefixMatcher` is considered unused so was removed. | ||
- [CLEANUP] `Options.WALFlushInterval` is removed as it wasn't used anywhere. | ||
|
||
- `LastCheckpoint` used to return just the segment name and now it returns the full relative path. | ||
- `NewSegmentsRangeReader` can now read over miltiple wal ranges by using the new `SegmentRange` struct. | ||
- `CorruptionErr` now also exposes the Segment `Dir` which is added when displaying any errors. | ||
- \[CHANGE\] Empty blocks are not written during compaction [#374](https://github.com/prometheus/tsdb/pull/374) | ||
## 0.3.1 | ||
- [BUGFIX] Fixed most windows test and some actual bugs for unclosed file readers. | ||
|
||
## 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. | ||
-[FEATURE] tsdbutil analyze subcomand to find churn, high cardinality, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.