-
Notifications
You must be signed in to change notification settings - Fork 832
Make the per labelset series limit error message consistent with per user series error message #7015
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
Make the per labelset series limit error message consistent with per user series error message #7015
Conversation
…user series error message Signed-off-by: Alvin Lin <alvinlin123@gmail.com>
bf5147f
to
904a106
Compare
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.
Nice, thank you!
pkg/ingester/limiter.go
Outdated
return fmt.Errorf("per-labelset series limit of %d exceeded (labelSet: %s, local limit: %d global limit: %d actual)", | ||
minNonZero(err.globalLimit, err.localLimit), err.id, err.localLimit, err.globalLimit) | ||
// per labelset limit does not have a configurable local limit like per user max series, so local limit is always zero. | ||
return fmt.Errorf("per-labelset series limit of %d exceeded (labelSet: %s, local limit: 0 global limit: %d actual local limit: %d)", |
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.
nit: should we drop local limit: 0
string? I don't see much value in it if it's always 0.
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.
Hi @alvinlin123!,
I think it would be better to expose only one of the two: actualLocalLimit
or localLimit
.
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.
Yup I think that's a good idea to drop the "localLimit" as we don't have local limit config now for per label set series limit. We can always add it back if we decided to add the local limit. Will update this PR.
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!
Signed-off-by: Alvin Lin <alvinlin123@gmail.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
What this PR does:
See title
Which issue(s) this PR fixes:
Fixes #7009
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]