-
Notifications
You must be signed in to change notification settings - Fork 824
Update Thanos and Prometheus #4560
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
Update Thanos and Prometheus #4560
Conversation
Signed-off-by: Peter Štibraný <[email protected]>
d40f6be
to
7afcee6
Compare
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
…block in a group, so we added more blocks. Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
3323764
to
74b72dd
Compare
@@ -209,6 +209,7 @@ func NewQuerierHandler( | |||
logger, | |||
func(context.Context) v1.RulesRetriever { return &querier.DummyRulesRetriever{} }, | |||
0, 0, 0, // Remote read samples and concurrency limit. | |||
false, |
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.
isAgent
parameter
@@ -1,3 +1,4 @@ | |||
//go:build requires_docker |
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.
These are added by goimport.
@@ -421,11 +420,13 @@ func TestCompactor_ShouldIncrementCompactionErrorIfFailedToCompactASingleTenant( | |||
userID := "test-user" | |||
bucketClient := &bucket.ClientMock{} | |||
bucketClient.MockIter("", []string{userID}, nil) | |||
bucketClient.MockIter(userID+"/", []string{userID + "/01DTVP434PA9VFXSW2JKB3392D"}, nil) | |||
bucketClient.MockIter(userID+"/", []string{userID + "/01DTVP434PA9VFXSW2JKB3392D", userID + "/01FN6CDF3PNEWWRY5MPGJPE3EX"}, nil) |
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.
Group is no longer compacted if it has only single block, so we need more blocks in compactor tests.
@@ -395,3 +395,37 @@ func sliceContains(t *testing.T, find string, in []string) bool { | |||
|
|||
return false | |||
} | |||
|
|||
func TestYamlFormatting(t *testing.T) { |
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.
Added this test to speed up debugging YAML formatting issue.
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.
Good job, LGTM!
* Update Thanos and Prometheus Signed-off-by: Peter Štibraný <[email protected]> * Fix imports. Signed-off-by: Peter Štibraný <[email protected]> * Fix imports. Signed-off-by: Peter Štibraný <[email protected]> * Fix compactor tests. Planning no longer runs if there is only single block in a group, so we added more blocks. Signed-off-by: Peter Štibraný <[email protected]> * Fix ruler tests. Signed-off-by: Peter Štibraný <[email protected]> Signed-off-by: Manish Kumar Gupta <[email protected]>
* Update Thanos and Prometheus Signed-off-by: Peter Štibraný <[email protected]> * Fix imports. Signed-off-by: Peter Štibraný <[email protected]> * Fix imports. Signed-off-by: Peter Štibraný <[email protected]> * Fix compactor tests. Planning no longer runs if there is only single block in a group, so we added more blocks. Signed-off-by: Peter Štibraný <[email protected]> * Fix ruler tests. Signed-off-by: Peter Štibraný <[email protected]>
* Update Thanos and Prometheus Signed-off-by: Peter Štibraný <[email protected]> * Fix imports. Signed-off-by: Peter Štibraný <[email protected]> * Fix imports. Signed-off-by: Peter Štibraný <[email protected]> * Fix compactor tests. Planning no longer runs if there is only single block in a group, so we added more blocks. Signed-off-by: Peter Štibraný <[email protected]> * Fix ruler tests. Signed-off-by: Peter Štibraný <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
This PR updates Thanos and Prometheus to latest main of the respective projects.
Prometheus has renamed some packages and introduced new types for series and chunk references, which prompted lot of changes across whole codebase.
I haven't yet checked updates in dependencies.
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]