Alarm Policies
Only applications whose access mode is SkyWalking support alarm policy settings for a single component.
Creating an APM Alarm Policy
- Log in to the management console.
- Click
on the left and choose Application > Application Performance Management.
- In the navigation pane, choose Link Trace > Metrics.
- In the tree on the left, click
next to the target environment. The Component Settings tab page is displayed by default. Switch to the Alarm Policies tab page.
- Click Add Alarm Policy.
- Basic information
Table 1 Basic information about an alarm policy Parameter
Description
Policy Name
Custom name, which cannot be left blank.
Only letters, digits, underscores (_), and hyphens (-) are allowed. Enter up to 512 characters.
Alarm Severity
Severity of an alarm. Options: COMMON and CRITICAL.
Monitored Object
Name of the object to be monitored. The default value is the name of the current environment and cannot be changed.
Alarm Policy Type
Options: Single-node and Aggregate. Single-node indicates single-instance metric alarms, and Aggregate indicates aggregated metric alarms of all instances under a component.
Monitoring Type
Select a monitoring type. The information about the selected type is displayed on the right.
Metric Set
Select a target metric set. The information about the selected metric set is displayed on the right.
- Alarm rule
Figure 1 Alarm rule
Table 2 Parameters for setting an alarm rule Parameter
Description
Dimension
(Optional) A fine-grained category of metrics.
Metric
Metric for which you want to define one or more alarm rules.
Metric: a metric in the metric set. For example, if Monitoring Item is set to Url and Metric Set is set to total, you can select the errorCount metric.
Operator: operation to be performed.
Threshold: threshold of the metric.
Alarm Condition
Condition for triggering an alarm.
A: the number of collection periods. Range: 1–10.
B: the number of times the alarm is triggered. Range: 1–10. This value cannot be greater than that of A.
C: period (in minutes) during which identical alarms will not be sent. This period cannot be shorter than 10 minutes.
Recovery Policy
Condition for clearing an alarm.
Notification upon Recovery
Whether to notify recipients of alarm clearance.
Strict Mode
Checks all returned values against alarm rules to detect exceptions.
For example, if a host has multiple CPU cores, there are multiple single-core CPU usages (such as cpu_no=0 and usage=98; cpu_no=1 and usage=99).
- Alarm Notification
Table 3 Alarm notification parameters Parameter
Description
Notification Content
Alarm details, which contain up to 500 characters.
- If Strict Mode is enabled, the alarm notification content supports both Variable and Loop. If Strict Mode is disabled, only Variable is supported.
- Alarm notification content. You can customize the content or select required metrics.
- Select the metrics to be collected. On the right of the page, click
next to a metric. The metric will then be referenced to the notification content box.
Notification Object
- Select a notification object from the drop-down list.
- Alarms will then be sent to the selected notification object. Unselected notification objects will not receive the alarm notifications.
- Click
to refresh notification objects.
- Basic information
- Click OK.
More Operations
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot