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

Add E2E test for exemplars #4221

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Add E2E test for exemplars #4221

merged 1 commit into from
Jun 1, 2021

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented May 11, 2021

Signed-off-by: yeya24 yb532204897@gmail.com

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Fixes #4014

Changes

  1. Use Builder pattern for creating Thanos Querier in the E2E test
  2. Add some test cases for exemplars API

Verification

@yeya24
Copy link
Contributor Author

yeya24 commented May 12, 2021

Blocked by #4223. Will update the test after that pr is merged.

Signed-off-by: yeya24 <yb532204897@gmail.com>
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@@ -115,11 +124,75 @@ func NewPrometheusWithSidecar(sharedDir string, netName string, name string, con
return prom, sidecar, nil
}

func NewQuerier(sharedDir, name string, storeAddresses, fileSDStoreAddresses, ruleAddresses, targetAddresses []string, metadataAddresses, exemplarAddresses []string, routePrefix, externalPrefix string) (*Service, error) {
type QuerierBuilder struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@onprem onprem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@onprem onprem merged commit 7bfccf4 into thanos-io:main Jun 1, 2021
@yeya24 yeya24 deleted the exemplars-e2e branch June 1, 2021 04:29
@yeya24
Copy link
Contributor Author

yeya24 commented Jun 1, 2021

Looks like CI doesn't pass. WIll fix it in next pr.

@onprem
Copy link
Member

onprem commented Jun 1, 2021

Looks like CI doesn't pass. WIll fix it in next pr.

The CI passed for this PR though, am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add E2E test for exemplars API
3 participants