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

Dynamic retention - data gets less granular with time #2485

Closed
waqark3389 opened this Issue Mar 8, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@waqark3389
Copy link

waqark3389 commented Mar 8, 2017

I have an interesting question. If I keep 6 months worth of metrics, e.g. cpu usage. This fills up disk unnecessary disk space as I dont really want to see what the cpu usage was like 5 months ago at a particular minute. Would it be possible to consolidate or roll up all points in a series past a certain time period, roll them up by averaging daily and store just one value for that day instead of every scrape result.

Essentially data is deleted (for disk space and performance) but an average for a day is kept in.

I want to keep 6 months worth of data but dont really want to see a very granular view of what happened 6 months ago

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Mar 8, 2017

There is no downsampling implemented right now, and it's not really planned either.

You can emulate the setup by having a long-term Prometheus federating at larger intervals from your short-term Prometheus.

Note that larger scrape intervals lead to worse compression, so the returns of downsampling are somewhat diminished.

Finally, I recommend to discuss questions like this on the prometheus-users mailing list.

@beorn7 beorn7 closed this Mar 8, 2017

@lock

This comment has been minimized.

Copy link

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