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

Vertical shard binary expression using metric name when no matching label #6605

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Aug 10, 2023

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

Changes

Binary expression can be vertically sharded without __name__ label if no matching labels are specified.

Image we have two series

foo{job="thanos", cluster="us"}
bar{job="thanos", cluster="eu"}

A query foo - bar is basically a join of foo and bar series. The join will ignore the metric name and will calculate hash for the rest labels in this case.

Verification

GiedriusS
GiedriusS previously approved these changes Aug 16, 2023
fpetkovski
fpetkovski previously approved these changes Aug 16, 2023
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24 yeya24 dismissed stale reviews from fpetkovski and GiedriusS via 936236a August 16, 2023 16:51
@yeya24 yeya24 force-pushed the vertical-sharding-binaaryexpr branch from 87e0de6 to 936236a Compare August 16, 2023 16:51
@yeya24 yeya24 enabled auto-merge (squash) August 16, 2023 16:53
@yeya24
Copy link
Contributor Author

yeya24 commented Aug 16, 2023

I enabled merge on green since it was approved already and fixed conflict.
Can I get another approval?

@yeya24
Copy link
Contributor Author

yeya24 commented Aug 16, 2023

I will go ahead and merge the pr as it was approved before and doc failed unrelated

@yeya24 yeya24 disabled auto-merge August 16, 2023 17:22
@yeya24 yeya24 merged commit 2b4f2a7 into thanos-io:main Aug 16, 2023
14 checks passed
@yeya24 yeya24 deleted the vertical-sharding-binaaryexpr branch August 16, 2023 17:22
harsh-ps-2003 pushed a commit to harsh-ps-2003/thanos that referenced this pull request Aug 22, 2023
…abel (thanos-io#6605)

* vertically shard binary expression even if no matching labels

Signed-off-by: Ben Ye <benye@amazon.com>

* add changelog

Signed-off-by: Ben Ye <benye@amazon.com>

* fix test

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>
coleenquadros pushed a commit to coleenquadros/thanos that referenced this pull request Sep 18, 2023
…abel (thanos-io#6605)

* vertically shard binary expression even if no matching labels

Signed-off-by: Ben Ye <benye@amazon.com>

* add changelog

Signed-off-by: Ben Ye <benye@amazon.com>

* fix test

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants