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

Implement metadata API limit in Ingester #6128

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

harry671003
Copy link
Contributor

@harry671003 harry671003 commented Jul 30, 2024

What this PR does:
This PR passes the limit param from series, label names and label values API into ingesters. Ingesters will only return a maximum of limit results if the param is set.

Note: I tested that adding the limit field in ingester API is both backwards and forwards compatible.

Which issue(s) this PR fixes:
Fixes #6127

Checklist

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

Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
@harry671003 harry671003 force-pushed the implement_metadata_limit branch from 2e836c6 to 8671cac Compare July 30, 2024 17:24
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
@harry671003 harry671003 marked this pull request as ready for review July 31, 2024 04:25
@harry671003
Copy link
Contributor Author

@yeya24 @alanprot could you please take a look?

@alanprot
Copy link
Member

alanprot commented Aug 8, 2024

Nice!

We will follow up with a SG PR? @harry671003

@harry671003
Copy link
Contributor Author

We will follow up with a SG PR? @harry671003

Yes. I'm making the changes in Thanos stores. After Thanos is updated, I'll implement this in store-gateways.

Signed-off-by: Alan Protasio <approtas@amazon.com>
Copy link
Member

@alanprot alanprot left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -41,6 +41,7 @@
* [ENHANCEMENT] Compactor: Split cleaner cycle for active and deleted tenants. #6112
* [ENHANCEMENT] Compactor: Introduce cleaner visit marker. #6113
* [ENHANCEMENT] Query Frontend: Add cortex_query_samples_total metric. #6142
* [ENHANCEMENT] Ingester: Implement metadata API limit. #6128
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can call it a feature maybe. But fine as an enhancement.

@yeya24 yeya24 merged commit 22245aa into cortexproject:master Aug 13, 2024
16 checks passed
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.

Support Metadata API limit param in storage layer
3 participants