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

[v10.2.x] Alerting: Attempt to retry retryable errors #79175

Merged
merged 1 commit into from Dec 7, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport c631261 from #79161


Retrying has been broken for a good while now (at least since version 9.4) - this change attempts to re-introduce them in their simplest and safest form possible.

I first introduced #79095 to make sure we don't disrupt or put additional load on our customer's data sources with this change in a patch release. Paired with this change, retries can now work as expected.

There's two small differences between how retries work now and how they used to work in legacy alerting.

Retries only occur for valid alert definitions - if we suspect that that error comes from a malformed alert definition, we skip retrying. We have added a constant backoff of 1s in between retries.

Once this is merged, I'll make sure to update:

With what we should do next.

* Alerting: Attempt to retry retryable errors

Retrying has been broken for a good while now (at least since version 9.4) - this change attempts to re-introduce them in their simplest and safest form possible.

I first introduced #79095 to make sure we don't disrupt or put additional load on our customer's data sources with this change in a patch release. Paired with this change, retries can now work as expected.

There's two small differences between how retries work now and how they used to work in legacy alerting.

Retries only occur for valid alert definitions - if we suspect that that error comes from a malformed alert definition we skip retrying.
We have added a constant backoff of 1s in between retries.

---------

Signed-off-by: gotjosh <josue.abreu@gmail.com>
(cherry picked from commit c631261)
@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner December 6, 2023 20:46
@grafana-delivery-bot grafana-delivery-bot bot requested review from rwwiv, JacobsonMT and yuri-tceretian and removed request for a team December 6, 2023 20:46
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.2.x milestone Dec 6, 2023
@grafana-delivery-bot grafana-delivery-bot bot added add to changelog area/backend backport A backport PR product-approved Pull requests that are approved by product/managers and are allowed to be backported labels Dec 6, 2023
@gotjosh gotjosh merged commit 946c0ff into v10.2.x Dec 7, 2023
21 checks passed
@gotjosh gotjosh deleted the backport-79161-to-v10.2.x branch December 7, 2023 09:53
@aangelisc aangelisc modified the milestones: 10.2.x, 10.2.3 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/backend backport A backport PR product-approved Pull requests that are approved by product/managers and are allowed to be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants