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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Defines the relation between scope and entity name.
18
18
19
19
## Rules
20
20
An alerting rule is made up of the following elements:
21
-
-**Rule name**. A unique name shown in the alarm message. It must end with `_rule`.
21
+
-**Rule id**. A unique name shown in the alarm message. It must end with `_rule`.
22
22
-**Expression**. A [MQE](../../api/metrics-query-expression.md) expression that defines the conditions of the rule.
23
23
The result type must be `SINGLE_VALUE` and the root operation of the expression must be a
24
24
[Compare Operation](../../api/metrics-query-expression.md#compare-operation) or [Bool Operation](../../api/metrics-query-expression.md#bool-operation) which provides `1`(true) or `0`(false) result.
@@ -34,9 +34,9 @@ The metrics names in the expression could be found in the [list of all potential
34
34
-**Exclude names regex**. A regex that excludes entity names. Both rules will take effect if both include-label list and include-label regex are set.
35
35
-**Tags**. Tags are key/value pairs that are attached to alarms. Tags are used to specify distinguishing attributes of alarms that are meaningful and relevant to users. If you want to make these tags searchable on the SkyWalking UI, you may set the tag keys in `core/default/searchableAlarmTags` or through the system environment variable `SW_SEARCHABLE_ALARM_TAG_KEYS`. The key `level` is supported by default.
36
36
-**Period**. The size of metrics cache in minutes for checking the alarm conditions. This is a time window that corresponds to the backend deployment env time.
37
-
-**Hooks**. Binding the specific names of the hooks when the alarm is triggered.
38
-
The name format is `{hookType}.{hookName}` (slack.custom1 e.g.) and must be defined in the `hooks` section of the `alarm-settings.yml` file.
39
-
If the hook name is not specified, the global hook will be used.
37
+
-**Hooks**. Binding the specific ids of the hooks when the alarm is triggered.
38
+
The id format is `{hookType}.{hookName}` (slack.custom1 e.g.) and must be defined in the `hooks` section of the `alarm-settings.yml` file.
39
+
If the hook id is not specified, the global hook will be used.
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
@@ -61,7 +61,7 @@ the calculation is `((1001 + 10001 + ... + 1001) / 7) > 1000` and the result wou
61
61
62
62
```yaml
63
63
rules:
64
-
# Rule unique name, must be ended with `_rule`.
64
+
# Rule unique id, must be ended with `_rule`.
65
65
endpoint_percent_rule:
66
66
# A MQE expression and the root operation of the expression must be a Compare Operation.
67
67
expression: sum((endpoint_sla / 100) < 75) >= 3
@@ -145,8 +145,8 @@ is through [AI powered baseline calculation](../ai-pipeline/metrics-baseline-int
145
145
146
146
## Hooks
147
147
Hooks are a way to send alarm messages to the outside world. SkyWalking supports multiple hooks of the same type, each hook can support different configurations.
148
-
For example, you can configure two Slack hooks, one named `default` and set `is-default: true` means this hook will apply on all `Alarm Rules` **without config** `hooks`.
149
-
Another named `custom1` will only apply on the `Alarm Rules` which **with config** `hooks` and include the name `slack.custom1`.
148
+
For example, you can configure two Slack hooks, one id is `default` and set `is-default: true` means this hook will apply on all `Alarm Rules` **without config** `hooks`.
149
+
Another id is `custom1` will only apply on the `Alarm Rules` which **with config** `hooks` and include the id `slack.custom1`.
0 commit comments