-
Notifications
You must be signed in to change notification settings - Fork 803
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
Implement metadata API limit in Ingester #6128
Conversation
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
2e836c6
to
8671cac
Compare
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Nice! 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>
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.
LGTM
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
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.
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 |
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.
I think we can call it a feature maybe. But fine as an enhancement.
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
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]