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

Tenant federation implementation of exemplar query interfaces #927

Merged
merged 4 commits into from
Feb 3, 2022

Conversation

56quarters
Copy link
Contributor

@56quarters 56quarters commented Jan 27, 2022

Signed-off-by: Nick Pillitteri [email protected]

What this PR does:

Allow queries with multiple tenants against exemplar endpoints. Queries
for each tenant are split and run in parallel using the same logic as the
existing tenant federation query endpoints.

Similar to the existing federated endpoints, the label __tenant_id__ is
added to the set of series labels for each exemplar to indicate which tenant
it was queried from.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@56quarters 56quarters force-pushed the 56quarters/tenant-federation-exemplars branch 4 times, most recently from 41d9956 to b8e63ad Compare February 1, 2022 17:42
Allow queries with multiple tenants against exemplar endpoints. Queries
for each tenant are split and run in parallel using the same logic as the
existing tenant federation query endpoints.

Similar to the existing federated endpoints, the label `__tenant_id__` is
added to the set of series labels for each exemplar to indicate which tenant
it was queried from.

Signed-off-by: Nick Pillitteri <[email protected]>
@56quarters 56quarters force-pushed the 56quarters/tenant-federation-exemplars branch from b8e63ad to 609eadb Compare February 1, 2022 17:49
@56quarters 56quarters marked this pull request as ready for review February 1, 2022 18:28
* Move shared code to common file

Signed-off-by: Nick Pillitteri <[email protected]>
Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

Good job! This looks good to me.

I only had one more minor comment about a test name

Better test case names

Signed-off-by: Nick Pillitteri <[email protected]>
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

Thanks for your work on that. Good to close the gaps in federation before we release.

LGTM

@56quarters 56quarters merged commit b1082f3 into main Feb 3, 2022
@56quarters 56quarters deleted the 56quarters/tenant-federation-exemplars branch February 3, 2022 14:08
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.

3 participants