-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Compactor support time filter (#4884) #4909
Conversation
6bc24c4
to
9da6678
Compare
Looks good to me(I'm not an official reviewer though). |
@jordy1024 also to fix the failing docs test, please run |
e73979c
to
4fc890f
Compare
@metonymic-smokey Thanks for reminding me,I will fix it right away. |
b704b72
to
faaa9b3
Compare
Hello,metonymic-smokey @metonymic-smokey |
@jordy1024 I faced the same issue in one of my PRs today. |
@metonymic-smokey |
@jordy1024 np at all! |
cmd/thanos/compact.go
Outdated
@@ -737,6 +741,14 @@ func (cc *compactConfig) registerFlag(cmd extkingpin.FlagClause) { | |||
cmd.Flag("hash-func", "Specify which hash function to use when calculating the hashes of produced files. If no function has been specified, it does not happen. This permits avoiding downloading some files twice albeit at some performance cost. Possible values are: \"\", \"SHA256\"."). | |||
Default("").EnumVar(&cc.hashFunc, "SHA256", "") | |||
|
|||
cc.filterConf = &store.FilterConfig{} | |||
|
|||
cmd.Flag("min-time", "Start of time range limit to serve. Thanos Compactor will serve only metrics, which happened later than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1d or 2h45m. Valid duration units are ms, s, m, h, d, w, y."). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the description Thanos Compactor will serve only metrics
. serve
is not a suitable verb for compactor.
6126e94
to
cf2c789
Compare
@yeya24 Maybe it's better, use compact instead of serve and blocks instead of metrics. |
I'm not sure if it is my problem. An error occurred in Phase
what should I do? |
cf2c789
to
efec901
Compare
Can you please do a rebase on main branch? I think the fix is on the main branch already |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jordy1024 This looks good now. Can you please update the changelog?
Sorry,it was an oversight on my part. I will complete it right away. @yeya24 |
efec901
to
ef59af7
Compare
Signed-off-by: wenmaoba <wenmaoba@tencent.com>
ef59af7
to
5be4e94
Compare
b7f6d17
to
a5fde80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
Verification