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
Alerting: Change default alert state to Error on execution error or timeout #55345
Conversation
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/33896 |
2c3eae6
to
cad66d0
Compare
There was a problem hiding this 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', |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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: