Skip to content

Conversation

danielblando
Copy link
Contributor

@danielblando danielblando commented Jul 23, 2025

What this PR does:
Introduce a new metric with reason from when ingester returns an error. Currently this will be useful for throttling customer on tooManyInflightRequests. We can expand for more error reasons as needed

Checklist

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

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
@@ -13,6 +13,8 @@ var (
errMaxSeriesLimitReached = errors.New("cannot add series: ingesters's max series limit reached")
errTooManyInflightPushRequests = errors.New("cannot push: too many inflight push requests in ingester")
errTooManyInflightQueryRequests = errors.New("cannot push: too many inflight query requests in ingester")

pushErrTooManyInflightRequests = "errTooManyInflightRequests"
Copy link
Member

Choose a reason for hiding this comment

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

Thanks. I think we can omit 'err' from the reason label, since the metric name itself contains error.

Suggested change
pushErrTooManyInflightRequests = "errTooManyInflightRequests"
pushErrTooManyInflightRequests = "tooManyInflightRequests"

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 23, 2025
@danielblando danielblando merged commit dd7f16b into cortexproject:master Jul 23, 2025
17 checks passed
@danielblando danielblando deleted the ingesterErrorMetric branch July 23, 2025 15:33
rubywtl pushed a commit to rubywtl/cortex that referenced this pull request Jul 23, 2025
* New metric for ingester errors

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* changelog

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* change error reason

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

---------

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ingester lgtm This PR has been approved by a maintainer size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants