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

Alerting: Change default alert state to Error on execution error or timeout #55345

Conversation

grobinson-grafana
Copy link
Contributor

What this PR does / why we need it:

This pull request changes the default alert state to Error for Alert state on execution error or timeout.

Which issue(s) this PR fixes:

Fixes #46398

Special notes for your reviewer:

@grafanabot
Copy link
Contributor

@grobinson-grafana grobinson-grafana force-pushed the grobinson/change-default-execution-error-or-timeout-state branch from 2c3eae6 to cad66d0 Compare September 18, 2022 15:02
@grobinson-grafana grobinson-grafana requested a review from a team September 18, 2022 15:02
@grobinson-grafana grobinson-grafana added the no-backport Skip backport of PR label Sep 18, 2022
Copy link
Member

@soniaAguilarPeiron soniaAguilarPeiron left a comment

Choose a reason for hiding this comment

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

LGTM!
I've added a not blocking comment.

@@ -294,7 +294,7 @@ describe('RuleEditor', () => {
grafana_alert: {
condition: 'B',
data: getDefaultQueries(),
exec_err_state: 'Alerting',
exec_err_state: 'Error',
Copy link
Member

Choose a reason for hiding this comment

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

We should use GrafanaAlertStateDecision.Error instead of 'Error' string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I will leave this to be discussed within the frontend squad as I don't have a good understanding of the RuleEditor.

@@ -505,7 +505,7 @@ describe('RuleEditor', () => {
uid,
condition: 'B',
data: getDefaultQueries(),
exec_err_state: 'Alerting',
exec_err_state: 'Error',
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor

@konrad147 konrad147 left a comment

Choose a reason for hiding this comment

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

LGTM

@grobinson-grafana grobinson-grafana merged commit 4a1ca7e into main Sep 19, 2022
@grobinson-grafana grobinson-grafana deleted the grobinson/change-default-execution-error-or-timeout-state branch September 19, 2022 09:42
@dsotirakis dsotirakis modified the milestones: 9.2.0, 9.2.0-beta1 Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Grafana unified alerting: wrong defaults for "Alert state if execution error or timeout"
6 participants