-
Notifications
You must be signed in to change notification settings - Fork 817
Query ingesters only for GetLabelNames and GetLabelValues if start time parameter is not specified #6618
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
Query ingesters only for GetLabelNames and GetLabelValues if start time parameter is not specified #6618
Conversation
Should we truncate response if |
…ovided Signed-off-by: Ahmed Hassan <[email protected]>
c05250c
to
700b1c2
Compare
Signed-off-by: Ahmed Hassan <[email protected]>
This reverts commit 4301baf. Signed-off-by: Ahmed Hassan <[email protected]>
… time provided" This reverts commit 700b1c2. Signed-off-by: Ahmed Hassan <[email protected]>
Signed-off-by: Ahmed Hassan <[email protected]>
cc37538
to
3e5e76a
Compare
Seems we had a discussion in the past about this break change for GetSeries. #4976 Can you update docs as we did them? |
Signed-off-by: Ahmed Hassan <[email protected]>
Signed-off-by: Ahmed Hassan <[email protected]>
Do we truncate for GetSeries? I think if the purpose of this PR is to avoid OOM, we should still truncate. If customer wants, it can explicit suggest the time range |
Yes we still truncate since we completely skip enforcing the max query length limit. I do agree it is better to still truncate. |
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.
Looks good. But I think we need to add a changelog
Signed-off-by: Ahmed Hassan <[email protected]>
Signed-off-by: Ahmed Hassan <[email protected]>
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
What this PR does:
GetSeries
,GetLabelNames
, andGetLabelValues
API endpoints have optional start and end time parameters. If user does not specify a start or end time parameter, we set them toMinTime
andMaxTime
.This causes
GetLabelNames
andGetLabelValues
to fail if start or end are not specified due to exceedingmaxQueryLength
limitFor
GetSeries
, we fallback to querying only ingesters if the start time is not specified. This PR changes the behaviour for bothGetLabelNames
andGetLabelValues
to also query ingesters if start time parameter is not specified.Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]