-
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
receiver: Split - Upstream the changes from the PR #3580 #3845
Conversation
I have updated the changes, take a look whenever free 🤗 @yeya24 |
I wonder if this suggestion is helpful in /home/yash/golib/src/github.com/thanos-io/thanos/pkg/route/handler_test.go:234:31: declaration "NewCounterVec" from package "github.com/prometheus/client_golang/prometheus" shouldn't be used, suggested: "github.com/prometheus/client_golang/prometheus/promauto.{NewCounter,NewCounterVec,NewCounterVec,NewGauge,NewGaugeVec,NewGaugeFunc,NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec}"
/home/yash/golib/src/github.com/thanos-io/thanos/pkg/route/handler_test.go:240:28: declaration "NewCounterVec" from package "github.com/prometheus/client_golang/prometheus" shouldn't be used, suggested: "github.com/prometheus/client_golang/prometheus/promauto.{NewCounter,NewCounterVec,NewCounterVec,NewGauge,NewGaugeVec,NewGaugeFunc,NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec}"
/home/yash/golib/src/github.com/thanos-io/thanos/pkg/route/handler_test.go:246:33: declaration "NewGauge" from package "github.com/prometheus/client_golang/prometheus" shouldn't be used, suggested: "github.com/prometheus/client_golang/prometheus/promauto.{NewCounter,NewCounterVec,NewCounterVec,NewGauge,NewGaugeVec,NewGaugeFunc,NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec}" because a similar issue was reported here after applying the suggestion - prometheus/client_golang#716 |
09022da
to
4361243
Compare
I don't have time for this right now, but what I'm a bit confused about is that
|
I will do some investigation today. |
b35dace
to
c35d09c
Compare
Can you please fix the Circle CI test and linting tests? |
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.
Either we're missing some context on this or we miss certain parts of the code 😅
pkg/route/error.go
Outdated
// determineWriteErrorCause extracts a sentinel error that has occurred more than the given threshold from a given fan-out error. | ||
// It will inspect the error's cause if the error is a MultiError, | ||
// It will return cause of each contained error but will not traverse any deeper. | ||
func determineWriteErrorCause(err error, threshold int) error { |
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.
Let's make sure we have parity
Line 689 in befb025
func determineWriteErrorCause(err error, threshold int) error { |
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.
Can you elaborate on this?
c35d09c
to
c34eac8
Compare
47799f5
to
d30458e
Compare
Signed-off-by: Chans321 <tsschand@gmail.com> fixes in e2e test for new receieve architecture - more fixes pending fixes in receive and e2e test of receive Signed-off-by: Chans321 <tsschand@gmail.com> fixed connection reset by peer error in receive e2e tests. all e2e tests pass Signed-off-by: Chans321 <tsschand@gmail.com> pkg/route: Fix unit tests route: Make hashring only work on labels route: Incorporate thanos-io#2899 fixed import issues and changed the query test signature Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> made some corrections while rebasing receiver changes Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> Added a method Error() to implement golang error interface Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> linting Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> use the new promauto package Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed unused params Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> rename method and add comments Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed unused flags in receiver service in e2e tests Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> replaced promauto with prometheus, as earlier was causing unnecessary panic Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> changes for debug Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed entry for receive test for e2e Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> added a readiness probe Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> fix E2E tests for receive router Signed-off-by: yeya24 <yb532204897@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
b05c9fd
to
6e61af6
Compare
Signed-off-by: Chans321 <tsschand@gmail.com> fixes in e2e test for new receieve architecture - more fixes pending fixes in receive and e2e test of receive Signed-off-by: Chans321 <tsschand@gmail.com> fixed connection reset by peer error in receive e2e tests. all e2e tests pass Signed-off-by: Chans321 <tsschand@gmail.com> pkg/route: Fix unit tests route: Make hashring only work on labels route: Incorporate thanos-io#2899 fixed import issues and changed the query test signature Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> made some corrections while rebasing receiver changes Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> Added a method Error() to implement golang error interface Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> linting Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> use the new promauto package Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed unused params Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> rename method and add comments Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed unused flags in receiver service in e2e tests Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> replaced promauto with prometheus, as earlier was causing unnecessary panic Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> changes for debug Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed entry for receive test for e2e Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> added a readiness probe Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> fix E2E tests for receive router Signed-off-by: yeya24 <yb532204897@gmail.com> revert changes for cmd/main Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> nitpicks Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed redundant health check Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> Add receive router registration Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> not to be commited Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> modified pkg/receive/handler.go Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> modified pkg/receive/multitsdb.go Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> modified pkg/route Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> modified cmd/thanos/receive_route.go Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> replaced MultiError with NonNilMultiError Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> changed to promauto Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> removed unused variables Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> changed labelpb.Zlabel to timeseries Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> whitespace removal and revert the labels Signed-off-by: Yash Sharma <yashrsharma44@gmail.com> use the main branch's implementation of MultiError Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
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.
I have just skimmed again and pointed out the major things. I'll review it in depth when I have time.
We should be super considered about merging this. @yashrsharma44 Please check all the subsequent PRs after this branched is created. And also we should have all the necessary facilities for the new subcommand. Moreover I don't see any changes on alerts or dashboard don't we have any changes regarding those parts?
I understand this is just a rebase effort but this could break receiver on master. If there are things missing in the previous PR, these should be documented by an issue or a document so that we can fix all those before the next major release. cc @Chans321
@@ -108,29 +108,6 @@ Flags: | |||
TLS CA to verify clients against. If no client | |||
CA is specified, there is no client | |||
verification on server side. (tls.NoClientCert) | |||
--remote-write.address="0.0.0.0:19291" |
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.
Yes, we remove these however, where are we adding those? We need to generate documentation for router as well.
TODO:
|
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
Signed-off-by: Yash Sharma <yashrsharma44@gmail.com>
As promised, the modification of the proposal is ready: #4036 🤗 PTAL before moving with this PR. |
Deprecated by #4231 |
Rebased #3580 with the
main
branch.Fixed it by creating another method for multierror -
Error()
. Let me know if the above makes sense.Would love some reviews on this.
cc @brancz