You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/setup/backend/backend-alarm.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,8 @@ The metrics names in the expression could be found in the [list of all potential
40
40
-**Silence period**. After the alarm is triggered at Time-N (TN), there will be silence during the **TN -> TN + period**.
41
41
By default, it works in the same manner as **period**. The same Alarm (having the same ID in the same metrics name) may only be triggered once within a period.
42
42
-**Recovery observation period**. Defines the number of consecutive periods that the alarm condition must remain false before the alarm is considered recovered. When the alarm condition becomes false, the system enters an observation period. If the condition remains false for the specified number of periods, a recovery notification is sent. If the condition becomes true again during the observation period, the alarm returns to the FIRING state.
43
-
The default value is 0, which means immediate recovery notification when the condition becomes false.
43
+
The default value is 0, which means immediate recovery notification when the condition becomes false.
44
+
**Notice:** because the alarm will not be triggered again during the silence period, recovery won't be triggered during the silence period after an alarm is fired. It will be in the OBSERVING_RECOVERY state, the recovery will be triggered only after the silence period is over and the condition remains false for the specified observation periods.
44
45
45
46
46
47
Such as for a metric, there is a shifting window as following at T7.
@@ -523,15 +524,16 @@ stateDiagram-v2
523
524
[*] --> NORMAL
524
525
NORMAL --> FIRING: Expression true<br/>not in silence period
525
526
526
-
FIRING --> SILENCED: Expression true<br/>in silence period
Copy file name to clipboardExpand all lines: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/AlarmStatusWatcher.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,8 +136,11 @@ public String getAlarmRuleContext(final String ruleName, final String entityName
Copy file name to clipboardExpand all lines: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/RunningRule.java
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,7 @@ public List<AlarmMessage> check() {
Copy file name to clipboardExpand all lines: oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/status/AlarmRunningContext.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,11 @@ public class AlarmRunningContext {
Copy file name to clipboardExpand all lines: oap-server/server-alarm-plugin/src/test/java/org/apache/skywalking/oap/server/core/alarm/provider/RunningRuleTest.java
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -740,13 +740,13 @@ public void testAlarmStateMachine_OnlySilencePeriod() throws IllegalExpressionEx
0 commit comments