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

Allow configuration of Prometheus storage.tsdb.retention.time #175

Closed
geerlingguy opened this issue Aug 2, 2021 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@geerlingguy
Copy link
Owner

geerlingguy commented Aug 2, 2021

I want to increase the retention time for Prometheus data so I can better compare long-term data. Right now it just defaults to 15d (15 days).

For now, I'm considering just setting --storage.tsdb.retention.time=90d in the docker-compose.yml file and keeping it at that for the time being:

https://github.com/geerlingguy/internet-pi/blob/master/templates/docker-compose.yml.j2#LL38

For easier configurability, for now we'd have to template the docker-compose.yml file and change that value when the playbook templates it. See: prometheus/prometheus#6188 and prometheus/prometheus#9115

@geerlingguy
Copy link
Owner Author

Inside config.yml, you can now place:

prometheus_tsdb_retention_time: 90d

90d is the default; adjust as desired, then run the playbook again to update.

gobrowse added a commit to gobrowse/internet-pi that referenced this issue Dec 5, 2022
Fixes geerlingguy#175: Allow configuration of Prometheus time series retention t…
martinbrose pushed a commit to martinbrose/internet-pi that referenced this issue Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant