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

Proposal, change default tsdb retention to be much bigger (or smaller) #4981

Open
baryluk opened this Issue Dec 9, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@baryluk
Copy link

baryluk commented Dec 9, 2018

Hi,

I had my prometheus running for few months, but I just noticed that (after upgrading to 2.6~rc0), that I can't see any data older than few days. I have few small instances of prometheus that were configured quickly without much rules or configs, other than simply adding few static targets (monitoring single target, or just few small servers / network appliances for getting some data in).

Reading https://prometheus.io/docs/prometheus/latest/storage/ , it appears that default retention (--storage.tsdb.retention is just 15 days.

Obviously for serious production I would configure it manually, but in many cases where I just startup prometheus for a one server, or run it for development, I would prefer to have default retention be much longer out of the box, to minimize configuration.

I can't fine any reasoning behind setting default of 15d.

I would prefer much more running out of disk space, and getting some alert, than loosing data so early by default.

I would propose to change default to either significantly less (to force custom retention, and be easy to spot quickly), or to something usable by most without any tweaks. That is either 1d, or 1y.

@baryluk baryluk changed the title Proposal, change default tsdb retention to be much bigger Proposal, change default tsdb retention to be much bigger (or smaller) Dec 9, 2018

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 9, 2018

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