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.4.x] Alerting: Return a 400 and errutil error when trying to delete a contact point that is referenced by a policy #86162

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 5b1498f from #85481


What is this feature?

Don't return a 500 for this, it's a user error.
Add errutil errors for good measure.

Why do we need this feature?

Fix the status code, such that it's not tracked as a 500 in metrics. When it's a 500, it hurts SLOs for no reason.

Which issue(s) does this PR fix?:

n/a

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

…act point that is referenced by a policy (#85481)

Return a 400 and errutil error when trying to delete a contact point that is referenced by a policy

(cherry picked from commit 5b1498f)
@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner April 15, 2024 14:27
@grafana-delivery-bot grafana-delivery-bot bot requested review from rwwiv, JacobsonMT, yuri-tceretian and grobinson-grafana and removed request for a team April 15, 2024 14:27
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.4.x milestone Apr 15, 2024
@alexweav alexweav merged commit 2c66783 into v10.4.x Apr 15, 2024
22 checks passed
@alexweav alexweav deleted the backport-85481-to-v10.4.x branch April 15, 2024 14:49
@fabrizio-grafana fabrizio-grafana modified the milestones: 10.4.x, 10.4.3 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants