Skip to content

Commit 1d0cf82

Browse files
Updates stack rule docs
1 parent 493a3bd commit 1d0cf82

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

explore-analyze/alerts-cases/alerts/view-alerts.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,37 @@ If an alert is affected by a maintenance window, the alert details include its i
4949

5050
### Alert statuses [alert-status]
5151

52-
There are three common alert statuses:
52+
There are four common alert statuses:
5353

5454
`active`
55-
: The conditions for the rule are met and actions should be generated according to the notification settings.
55+
: The conditions for the rule are met. If the rule has [actions](create-manage-rules.md#defining-rules-actions-details), {{kib}} generates notifications based on the actions' notification settings.
5656

57-
`recovered`
58-
: The conditions for the rule are no longer met and recovery actions should be generated.
57+
`flapping`
5958

60-
`untracked`
61-
: Actions are no longer generated. For example, you can choose to move active alerts to this state when you disable or delete rules.
59+
: The alert is switching repeatedly between active and recovered states. If the rule has actions that run when the alert status changes states, those actions are suppressed while the alert is flapping.
6260

63-
::::{note}
64-
An alert can also be in a "flapping" state when it is switching repeatedly between active and recovered states. This state is possible only if you have enabled alert flapping detection in **{{stack-manage-app}} > {{rules-ui}} > Settings**. For each space, you can choose a look back window and threshold that are used to determine whether alerts are flapping. For example, you can specify that the alert must change status at least 6 times in the last 10 runs. If the rule has actions that run when the alert status changes, those actions are suppressed while the alert is flapping.
61+
::::{note}
62+
63+
Alert flapping is turned on by default. You can modify the criteria for changing an alert's status to the flapping state by configuring the **Alert flapping detection** settings. To do this, navigate to the **Alerts** page in the main menu, or use the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md). Next, click **Manage Rules**, then **Settings** to open the global rule settings for the space. In the **Alert flapping detection** section, modify the rules' look back window and threshold for alert status changes. For example, you can specify that the alert must change its status at least 6 times in the last 10 runs for it to become a flapping alert.
6564

6665
::::
6766

67+
`recovered`
68+
: The conditions for the rule are no longer met. If the rule has [recovery actions](create-manage-rules.md#defining-rules-actions-details), {{kib}} generates notifications based on the actions' notification settings. Recovery actions only run if the rule's conditions aren't met during the current rule execution, but were in the previous one.
69+
70+
71+
An active alert changes to recovered if the conditions for the rule that generated it are no longer met.
72+
73+
A flapping alert changes to recovered when the rule's conditions are unmet for a specific number of consecutive runs. This number is determined by the **Alert status change threshold** setting, which you can configure under the **Alert flapping detection** settings.
74+
75+
For instance, if the threshold is set so an alert must change status at least 6 times in the last 10 runs to be considered flapping, then for the flapping alert to recover, the rule's conditions must remain unmet for 6 consecutive runs. If the rule's conditions are met at any point during this recovery period, the count of consecutive unmet runs will reset, requiring the alert to remain unmet for an additional 6 consecutive runs to finally be reported as recovered.
76+
77+
78+
Once a flapping alert is recovered, it cannot be changed to flapping again. Only new alerts with repeated status changes are candidates for the flapping status.
79+
80+
`untracked`
81+
: The rule is disabled, or you’ve marked the alert as untracked. To mark the alert as untracked, go to the **Alerts** table, click the {icon}`boxes_horizontal` icon to expand the **More actions** menu, and click **Mark as untracked**. When an alert is marked as untracked, actions are no longer generated. You can choose to move active alerts to this state when you disable or delete rules.
82+
6883
## Mute alerts [mute-alerts]
6984

7085
If an alert is active or flapping, you can mute it to temporarily suppress future actions. In both **{{stack-manage-app}} > Alerts** and **{{rules-ui}}**, you can open the action menu (…) for the appropriate alert and select **Mute**. To permanently suppress actions for an alert, open the actions menu and select **Mark as untracked**.

0 commit comments

Comments
 (0)