-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix alerting health API to consider rules in all spaces #100879
Fix alerting health API to consider rules in all spaces #100879
Conversation
expect(health.alerting_framework_heath.decryption_health.status).to.eql('ok'); | ||
expect(health.alerting_framework_heath.execution_health.status).to.eql('ok'); | ||
expect(health.alerting_framework_heath.read_health.status).to.eql('ok'); |
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.
There is potential for flakiness here if ever a test from another file forgets to cleanup a rule that is in an error state or something along those lines.
@elasticmachine merge upstream |
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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! Verified by creating rules in different spaces and then forcing an execution error in some of the rules. Verified that the health reflected these errors instead of always saying ok
. Also verified it worked with spaces disabled.
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! Works as expected.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @mikecote |
* Initial commit * Expand tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Resolves #99930.
In this PR, I'm fixing the alerting health APIs to consider rules in all spaces instead of the default space only.