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
Default --storage.tsdb.retention.time #13967
Comments
Thanks for reporting this. prometheus/cmd/prometheus/main.go Lines 806 to 813 in 76b0318
For prometheus/cmd/prometheus/main.go Lines 345 to 346 in 76b0318
as the zero value of prometheus/cmd/prometheus/main.go Line 251 in 76b0318
prometheus/cmd/prometheus/main.go Lines 571 to 574 in 76b0318
outside of What we can do, is make https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects as explicit as the description in prometheus/cmd/prometheus/main.go Line 251 in 76b0318
/flags page about how we consider the defaults.
We could set prometheus/cmd/prometheus/main.go Lines 571 to 574 in 76b0318
kingpin know about the "real/final" default, but I don't think it's a good idea.
|
Thanks a lot for the quick and detailed answer. The reason I noticed this behavior was because the cloudflare pint tool was complaining about my retention time being 0s and thus being shorter than some of the ranges that I was querying (like 2m). After that I was a bit confused whats going on because when I was running a query it seemed like that there was a history kept but I was not able to validate that it was the 15days claimed or just the cleanup running infrequently. After checking I just noticed that the |
Let's start by making https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects as clera as prometheus/cmd/prometheus/main.go Lines 345 to 346 in 76b0318
|
Hi @machine424, |
Hi @machine424 |
I think it would have also helped me to document the strange behavior that the |
What did you do?
I was running prom/prometheus:v2.37.6
What did you expect to see?
--storage.tsdb.retention.time is said to default to 15 documented here : https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects
What did you see instead? Under which circumstances?
The flags I see at
/flags
show--storage.tsdb.retention.time
to be 0sSystem information
No response
Prometheus version
No response
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response
The text was updated successfully, but these errors were encountered: