transform-alerts.asciidoc 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. [role="xpack"]
  2. [[transform-alerts]]
  3. = Generating alerts for {transforms}
  4. beta::[]
  5. {kib} {alert-features} include support for {transform} rules, which check the
  6. health of {ctransforms} with certain conditions. If the conditions of the rule
  7. are met, an alert is created and the associated action is triggered. For
  8. example, you can create a rule to check if a {ctransform} is started and to
  9. notify you in an email if it is not. To learn more about {kib} {alert-features},
  10. refer to
  11. {kibana-ref}/alerting-getting-started.html#alerting-getting-started[Alerting].
  12. The following {transform} rules are available:
  13. {transform-cap} health::
  14. Monitors {transforms} health and alerts if an operational issue occurred.
  15. [[creating-transform-rules]]
  16. == Creating a rule
  17. You can create {transform} rules under **{stack-manage-app} > {rules-ui}**.
  18. On the *Create rule* window, give a name to the rule and optionally provide
  19. tags. Specify the time interval for the rule to check {transform} health
  20. changes. You can also select a notification option with the _Notify_ selector.
  21. An alert remains active as long as the configured conditions are met during the
  22. check interval. When there is no matching condition in the next interval, the
  23. `Recovered` action group is invoked and the status of the alert changes to `OK`.
  24. For more details, refer to the documentation of
  25. {kibana-ref}/create-and-manage-rules.html#defining-rules-general-details[general rule details].
  26. Select the {transform-cap} health rule type under the Stack Monitoring section.
  27. [role="screenshot"]
  28. image::images/transform-rule.png["Creating a transform health rule"]
  29. [[creating-transform-health-rules]]
  30. === {transform-cap} health
  31. Select the {transform} or {transforms} to include. You can also use a special
  32. character (`*`) to apply the rule to all your {transforms}. {transforms-cap}
  33. created after the rule are automatically included.
  34. The following health check is available and enabled by default:
  35. _{transform-cap} is not started_::
  36. Notifies if the corresponding {transforms} is not started or it does not index
  37. any data. The notification message recommends the necessary actions to solve
  38. the error.
  39. [role="screenshot"]
  40. image::images/transform-check-config.png["Selecting health check"]
  41. As the last step in the rule creation process,
  42. <<defining-actions, define the actions>> that occur when the conditions
  43. are met.
  44. [[defining-actions]]
  45. == Defining actions
  46. Connect your rule to actions that use supported built-in integrations by
  47. selecting a connector type. Connectors are {kib} services or third-party
  48. integrations that perform an action when the rule conditions are met or the
  49. alert is recovered. You can select in which case the action will run.
  50. [role="screenshot"]
  51. image::images/transform-alert-actions.png["Selecting connector type"]
  52. For example, you can choose _Slack_ as a connector type and configure it to send
  53. a message to a channel you selected. You can also create an index connector that
  54. writes the JSON object you configure to a specific index. It's also possible to
  55. customize the notification messages. A list of variables is available to include
  56. in the message, like {transform} ID, description, {transform} state, and so on.
  57. After you save the configurations, the rule appears in the *{rules-ui}* list
  58. where you can check its status and see the overview of its configuration
  59. information.
  60. The name of an alert is always the same as the {transform} ID of the associated
  61. {transform} that triggered it. You can mute the notifications for a particular
  62. {transform} on the page of the rule that lists the individual alerts. You can
  63. open it via *{rules-ui}* by selecting the rule name.