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 types(source) for actions serverless metrics (elast…
…ic#171416) Resolves: elastic#168635 This PR intends to add `source` data (user or framework) to the errors that returned by the actions plugin and use them to create two new metrics in TaskManager. New metrics: ``` USER_ERRORS = 'user_errors' FRAMEWORK_ERRORS = 'framework_errors' ``` Error source types: ``` FRAMEWORK = 'framework' USER = 'user' ``` I tried to keep the errorSource definition close to the place that the error is thrown as much as possible. To check the types / numbers for these, you can `curl $KB_URL/api/task_manager/metrics?reset=false` to get the values that our support infrastructure will be using. To test how well this code works, you can inject errors (add code) into a connector executor that you use in an alert action, and then use the endpoint to see how the errors were counted. --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
4c2ea7d
commit dc25e89
Showing
30 changed files
with
2,269 additions
and
339 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
Oops, something went wrong.