Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Querier/Sidecar/StoreGW: Implement Info service and add
--endpoint
flag in Querier #4282Querier/Sidecar/StoreGW: Implement Info service and add
--endpoint
flag in Querier #4282Changes from all commits
9ea5957
a076da0
61c68cb
95b1ce5
245e9c4
27b9a21
7f94177
daff1e3
829af65
797f3a8
b9f677b
ceaf2b4
c3baaea
9b9b68c
fec2e8b
a330d23
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We can use global variable for the two values to avoid calculating them each time.
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.
@hitanshu-mehta We are still calling
.Unix()
every time. Can't we just initializev1.MinTime
andv1.MaxTime
as int64? Are they used anywhere else?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.
Currently, they are not being used anywhere else. Agree, I should've used int64. I'll correct it. Thank you!
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.
The thing is we can have kind of constants somewhere in global level. Can we do that? It's still to be imp[roved?
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.
What's the deprecation plan for ths old Info methods? Can we unify implementation somehow at least?
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.
ping
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.
Really sorry for delay.
Here is the deprecation plan I had in mind.
--store
,--rule
,--metadata
,--exemplar
,--target
) and all the boilerplate code we have for all commands. ( eg. duplication check, dnsProviders ...)storeset.go
file ( I am working on to move new endpoint flow in new file as discussed here ) and all dependencies of this file from the code base.BucketStore
,MultiTSDBStore
,PrometheusStore
,ProxyStore
andTSDBStore
)All these steps will be done in single PR. I think this plan should work .
Please let me know if im missing something :)
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.
Why do we need to unify old info methods?
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.
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.
Optional nice to have: Would be cool to use functional options for this, instead of having to pass
nil
for the ones not available.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.
Sorry for the late response.
SGTM!