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

Report global limit in error msg for tenant rate limited errors #2104

Merged
merged 2 commits into from
Jun 17, 2022

Conversation

zenador
Copy link
Contributor

@zenador zenador commented Jun 14, 2022

What this PR does

Improves message for per-tenant rate limit errors by reporting global limit instead of local, and removing info confusing to the user.

Which issue(s) this PR fixes or relates to

Fixes #2082 according to user feedback in #2081

Checklist

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

@zenador zenador requested a review from pracucci June 14, 2022 16:53
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM, nice work!

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.

Looks good to me, good job!

pkg/util/validation/errors.go Outdated Show resolved Hide resolved
pkg/distributor/distributor.go Outdated Show resolved Hide resolved
@zenador zenador added the type/docs Improvements or additions to documentation label Jun 17, 2022
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci merged commit 917346f into main Jun 17, 2022
@pracucci pracucci deleted the zenador/global-ingestion-rate-limit branch June 17, 2022 08:12
masonmei pushed a commit to udmire/mimir that referenced this pull request Jul 11, 2022
…ana#2104)

* Report global limit in error msg for tenant rate limited errors

* Revise error msg for ingestion and request rate limits to remove info confusing to the user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Improvements or additions to documentation
Projects
None yet
4 participants