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

Prometheus data retention? #33

Open
lostngone1 opened this issue Feb 9, 2023 · 1 comment
Open

Prometheus data retention? #33

lostngone1 opened this issue Feb 9, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@lostngone1
Copy link

It looks like Prometheus's data retention default is 15 days. Is there an easy way to change that(looking to store ~30 days)?

I am not an expert on containers or Prometheus.

Thank you.

@lostngone1 lostngone1 added the enhancement New feature or request label Feb 9, 2023
@mtflynn2011
Copy link

I think the right option for Prometheus is: --storage.tsdb.retention.time=12d (or however many days you want)

I've been trying to add:
--storage.tsdb.retention.time=365d
as a command-line option to prometheus without success.

I've seen things online that suggests adding a "command: - '--storage.tsdb.retention.time=365d' to the docker-compose.yaml file is the way to go. But, Prometheus doesn't seem to start up right when I do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants