Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptsdb.retention use problem #5005
Comments
This comment has been minimized.
This comment has been minimized.
|
Blocks are deleted as a whole when it goes beyond retention period. In your case, assuming block range was |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I have same issuse, could someone tell me where is the code about tsdb retention? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
IIUC here what happens. When the retention kicks in, we have:
TSDB doesn't account for data in the WAL for retention adn uses maxTime of the latest block (eg prometheus/vendor/github.com/prometheus/tsdb/db.go Lines 339 to 356 in 68f0787 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I Know . now is Wed Dec 19 10:50:02 CST 2018 |



timchenxiaoyu commentedDec 17, 2018
version=2.5.0, branch=HEAD, revision=67dc912ac8b24f94a1fc478f352d25179c94ab9bset
set --storage.tsdb.retention=4h
get more than 4h monitor data ,why