Revert "slack: retry 429 errors (#2112)"#2128
Merged
simonpasquier merged 1 commit intoprometheus:release-0.20from Dec 6, 2019
Merged
Revert "slack: retry 429 errors (#2112)"#2128simonpasquier merged 1 commit intoprometheus:release-0.20from
simonpasquier merged 1 commit intoprometheus:release-0.20from
Conversation
This reverts commit 26cc96a. Signed-off-by: Simon Pasquier <spasquie@redhat.com>
roidelapluie
approved these changes
Dec 4, 2019
simonpasquier
added a commit
that referenced
this pull request
Dec 12, 2019
* Revert "slack: retry 429 errors (#2112)" (#2128) This reverts commit 26cc96a. Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Revert "config: remove support for JSON marshaling (#2086)" (#2133) This reverts commit 918f08b. Signed-off-by: Simon Pasquier <spasquie@redhat.com> * config: fix JSON unmarshaling for HostPort (#2134) Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Cut 0.20.0 (#2137) Signed-off-by: Simon Pasquier <spasquie@redhat.com>
5 tasks
biwwy0
added a commit
to biwwy0/alertmanager
that referenced
this pull request
Feb 26, 2026
Make HTTP 429 (Too Many Requests) retryable for the Slack notifier by adding http.StatusTooManyRequests to the retrier's RetryCodes, matching the pattern already used by PagerDuty, OpsGenie, Jira, and incident.io. Additionally, parse the Retry-After response header on 429 responses and sleep for the indicated duration before returning. This addresses the concern raised when a similar change was reverted in prometheus#2128: simply retrying 429 without honoring Retry-After causes rapid-fire retries that risk getting apps permanently disabled by Slack. The sleep respects context cancellation. Fixes prometheus#2111 Ref prometheus#2205 Signed-off-by: Anton Ivanov <antonivanov@bitgo.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reverts commit 26cc96a.
As discussed in #2121, when an API endpoint applies rate-limits, retrying immediately might cause more harm than waiting a bit.
From the Slack documentation:
For now, I think that retrying the notification on the next
group_intervalas it was before is the safest option.cc @roidelapluie @gavk34 @stuartnelson3 @mxinden