-
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
Alerting user interface documentation and guide #60256
Alerting user interface documentation and guide #60256
Conversation
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! Really appreciate you putting this together, it looks really awesome! Just had 2 small comments.
@peterschretlen I can review the docs. |
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 mainly reviewed for consistency and accessibility, but if there is anything else you want me to pay special attention to, please let me know. And thank you for this PR!
@@ -0,0 +1,34 @@ | |||
[role="xpack"] | |||
[[alert-details]] | |||
=== Alert Details |
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.
Details
> details
[role="screenshot"] | ||
image::images/alerts-details-instances-active.png[Alert details page with three alert instances] | ||
|
||
In the example above, an alert detects when a site serves more than a threshold number of bytes in a 24 hour period. The *alert details* view show that three sites are above the threshold. These are called *alert instances* - occurrences of the condition being detected - and the instance name, status, time of detection, and duration of the condition are shown in this view. |
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.
To meet accessibility standards, we are removing all instances of above
from the docs. I would change this first sentence to:
Alerts detect when a site...
[role="screenshot"] | ||
image::images/alerts-details-instances-active.png[Alert details page with three alert instances] | ||
|
||
In the example above, an alert detects when a site serves more than a threshold number of bytes in a 24 hour period. The *alert details* view show that three sites are above the threshold. These are called *alert instances* - occurrences of the condition being detected - and the instance name, status, time of detection, and duration of the condition are shown in this view. |
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.
Since users are already on the Alert details page, I would change the second sentence to:
In this example, three sites are above the threshold.
[role="screenshot"] | ||
image::images/alerts-details-instances-active.png[Alert details page with three alert instances] | ||
|
||
In the example above, an alert detects when a site serves more than a threshold number of bytes in a 24 hour period. The *alert details* view show that three sites are above the threshold. These are called *alert instances* - occurrences of the condition being detected - and the instance name, status, time of detection, and duration of the condition are shown in this view. |
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.
*alert instances*
> alert instances
[role="screenshot"] | ||
image::images/alerts-details-instance-muting.png[Muting an alert instance] | ||
|
||
Alert instances will come and go from the list depending on whether they meet the alert conditions or not - unless they are muted. If a muted instance no longer meets the alert conditions, it will appear as "inactive" in the list. This prevents an instance from triggering actions if it reappears in the future. |
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.
"inactive"
> inactive
|
||
{kib} alerting run both alert checks and actions as persistent background tasks. This has two major benefits: | ||
|
||
* *Persistence*: all task state and scheduling is stored in elasticsearch, so if {kib} is restarted, alerts and actions will pick up where they left off. |
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.
elasticsearch
> {es}
|
||
{kib} background tasks are managed by: | ||
|
||
. polling an {es} task index for overdue tasks at 3 second intervals. |
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.
polling
> Polling
[float] | ||
=== Running background alert checks and actions | ||
|
||
{kib} background tasks are managed by: |
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.
This should be a bulleted list instead of a numbered list.
{kib} background tasks are managed by: | ||
|
||
. polling an {es} task index for overdue tasks at 3 second intervals. | ||
. tasks are then claiming them by updating them in the {es} index, using optimistic concurrency control to prevent conflicts. Each {kib} instance can run a maximum of 10 concurrent tasks, so a maximum of 10 tasks are claimed each interval. |
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.
tasks
> Tasks
|
||
. polling an {es} task index for overdue tasks at 3 second intervals. | ||
. tasks are then claiming them by updating them in the {es} index, using optimistic concurrency control to prevent conflicts. Each {kib} instance can run a maximum of 10 concurrent tasks, so a maximum of 10 tasks are claimed each interval. | ||
. tasks are run on the {kib} server. |
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.
tasks
> Tasks
@KOTungseth thank you for reviewing, I've made those updates. I think that should be good in terms of review, @mikecote has reviewed the content. I do expect there may be some follow-up work to update things like screenshots as there a few bugs being fixed, but I think we'll open separate PRs for those. |
Summary
Fixes #54986 adding the following sections to the Kibana guide:
Because we may change our API signatures in 7.8, I have left out API documentation for now.
Checklist