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

retention shown in runtime page set to 0s #5321

Closed
roidelapluie opened this Issue Mar 8, 2019 · 8 comments

Comments

Projects
None yet
2 participants
@roidelapluie
Copy link
Contributor

roidelapluie commented Mar 8, 2019

In Prometheus 2.8-rc0 the runtime page shows '0s' retention.

2.7.1:
retention

2.8-rc0:
retention2

Bisect:
a3c41f4 is the first bad commit
commit a3c41f4
Author: Krasi Georgiev krasi-georgiev@users.noreply.github.com
Date: Tue Feb 19 13:53:43 2019 +0200

use the default time retention value only when no size retention is set (#5216)

fixes https://github.com/prometheus/prometheus/issues/5213

Now that we have time and size base retention time bases should not have a default value. A default is set only when both - time and size flags are not set.

This change will not affect current installations that rely on the default time based value, and will avoid confusions when only the size retention is set and it is expected that the default time based setting would be no longer in place.

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>

:040000 040000 e9acc051e5fd1bfc7262fbd60e675f59976ffa3e 35e8966e63113b7bfc3a61432bbdab27d5a006f6 M cmd

@roidelapluie

This comment has been minimized.

Copy link
Contributor Author

roidelapluie commented Mar 8, 2019

Not sure if that is a bug or not but it is definitively confusing. Maybe we should add to the "Runtime" page the actual retention values.

@roidelapluie

This comment has been minimized.

Copy link
Contributor Author

roidelapluie commented Mar 8, 2019

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Mar 9, 2019

what flags did you use when starting Prometheus?

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Mar 9, 2019

just replicated it, the retention is set to 15d as before,but the GUI shows incorrect info. Will fix soon. Thanks.

@roidelapluie

This comment has been minimized.

Copy link
Contributor Author

roidelapluie commented Mar 9, 2019

Since now the flag is optional, I think maybe we could have in runtime page: "TSDB retention: 15d"

@roidelapluie

This comment has been minimized.

Copy link
Contributor Author

roidelapluie commented Mar 9, 2019

The values printed out could be:

  • 15d
  • 15d or 12 GB
  • 12GB
@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Mar 9, 2019

I opened a PR with the fix.

Since now the flag is optional, I think maybe we could have in runtime page: "TSDB retention: 15d"

not sure what you mean by this comment.

@roidelapluie

This comment has been minimized.

Copy link
Contributor Author

roidelapluie commented Mar 9, 2019

Oh nevermind I had a more complex fix in mind

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.