Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does it work- storage.local.retention? #1589

Closed
mokshpooja opened this Issue Apr 25, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@mokshpooja
Copy link

mokshpooja commented Apr 25, 2016

Hi Guys, Was looking into the code of storage.go. Wanting to understand what chain of actions happen after storage-local.retention time frame is met.
Overview would help. Thanks.

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Apr 25, 2016

On 25 April 2016 at 15:22, mokshpooja notifications@github.com wrote:

Was looking into the code of storage.go. Wanting to understand
what chain of actions happen after storage-local.retention time frame is met.
Overview would help. Thanks.

Starting point is the loop method:
https://github.com/prometheus/prometheus/blob/master/storage/local/storage.go#L993

It goes through all series and performs a "maintenance" on them, which
includes truncating old chunks. You have to take it from there and
explore the code.

Björn Rabenstein, Engineer
http://soundcloud.com/brabenstein

SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany
Managing Director: Alexander Ljung | Incorporated in England & Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B

@fabxc fabxc added kind/question and removed question labels Apr 28, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 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.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.