forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distinguish error type/sources in alerting (elastic#173932)
Resolves: elastic#168631 This PR intends to distinguish the error type/source (user or framework) that are returned by the alerting plugin. The type/source is used by the TaskManager to generate TaskRun metrics (user_errors or framework_errors). |Error type|Error description| |---|---| |USER| Disabled rule type error| |USER| Validation errors| |USER| Rule type executor errors| |FRAMEWORK| Error getting decrypted rule| |FRAMEWORK| Disabled rule errors| |FRAMEWORK| Fetching RawRule errors| |FRAMEWORK| Enqueue actions errors| |FRAMEWORK| Fetching summarised alerts errors| |FRAMEWORK| All the other rule run errors| ## To Verify: Throw an error in one of the try-catch blocks (or anywhere in the run method of the TaskTunner) and expect to see the metric counter to increment the number of respective errors on the below page. http://localhost:5601/api/task_manager/metrics?reset=false
- Loading branch information
1 parent
8ab2fab
commit cf2bf53
Showing
7 changed files
with
175 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.