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 upNot Deleting Old Data After TSDB Retention Passed #4176
Comments
This comment has been minimized.
This comment has been minimized.
|
another unexpected log is the It would be easyest to replicate if you can send me a copy of the data folder (kgeorgie at redhat.com) or if you use vscode we can use the new live share feature to troubleshoot this together :) |
This comment has been minimized.
This comment has been minimized.
|
@krasi-georgiev I think that I'm afraid I can't share the data with you because it's from our companies system and potentially sensitive. If there is something I look for in the data that might help in debugging I can check? |
This comment has been minimized.
This comment has been minimized.
|
this is the prometheus/vendor/github.com/prometheus/tsdb/db.go Lines 434 to 465 in b5f9466 or if you can share the |
This comment has been minimized.
This comment has been minimized.
|
Here is one of the meta files:
Both timestamp are for March 27, 2018 (> 15d). I'll have a look about putting in some debugging in the function to see what's going on. |
This comment has been minimized.
This comment has been minimized.
|
maybe doesn't count holidays and weekends Joke aside ping me on IRC of you need any help adding some debugging info. |
This comment has been minimized.
This comment has been minimized.
|
any luck with the debugging? |
This comment has been minimized.
This comment has been minimized.
|
Unfortunately our test environment got re-build before I had a chance to add some debugging :( I'll keep an eye on the new environment and see if the same thing happens again. I'll reopen if it does. Thanks for the help! |
diarmuidie
closed this
May 24, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
diarmuidie commentedMay 21, 2018
Bug Report
What did you do?

Start Prometheus with 15d retention period:
What did you expect to see?
15 days of metrics stored, per the
--storage.tsdb.retention=15dflag.What did you see instead? Under which circumstances?

7+ weeks of metrics stored and 100% disk usage.
This Prometheus is running in a Kubernetes pod with an Amazon EBS volume mounted for storage. The cluster is used for testing so the pod has been restarted a number of times (in case that makes a difference).
Environment
System information:
Linux 3.10.0-327.10.1.el7.x86_64 x86_64Prometheus version:
Prometheus configuration file:
Startup logs