Creating an Alarm Template
APM allows you to configure alarm templates. You can create multiple alarm policies under a template and bind them to nodes.
Procedure
- Log in to the management console.
- Click on the left and choose Application > Application Performance Management.
- In the navigation pane, choose Application Monitoring > Metrics.
- In the tree on the left, click an application. The metric details page of the application is displayed.
- Click the Alarm Templates tab.
Figure 1 Creating an alarm template
- Click Add Template to add an alarm template as prompted.
- Enter basic information.
Template Name: Enter up to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.
Remarks: Enter up to 512 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.
- Click Add Alarm Policy to add an alarm policy.
- Basic information
Figure 2 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.
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 Item
Select a target monitoring item. The information about the selected item 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 3 Alarm rule
Table 2 Alarm rule parameters Parameter
Description
Dimension
(Optional) A category of metrics.
Metric
Metric for which you want to define one or more alarm rules.
Alarm Condition
Condition for triggering an alarm.
A: 1–10
B: 1–10; not greater than A
C: ≥ 10
Recovery Policy
Condition for clearing an alarm.
Notification upon Recovery
Whether to notify recipients of alarm clearance.
Multi-Line Matching
(Optional) Whether to define data in the alarm notification content line by line.
Notification Content
Alarm details, which contain up to 500 characters.
- If Multi-Line Matching is enabled, the alarm notification content supports both Variable and Loop. If Multi-Line Matching is disabled, only Variable can be selected.
- Alarm notification content. You can customize the content or select metrics as required.
- Alarm details, which contain up to 500 characters.
- Select required metrics. Specifically, on the right of the page, click next to the target metric. The metric will then be displayed in the notification content.
- Notification object
Figure 4 Notification object
Table 3 Alarm notification parameters Parameter
Description
Notification Object
Select a notification object from the drop-down list.
The alarm will only be sent to the selected notification object.
- Basic information
- Click Yes.
- Bind nodes based on the environment, environment tag, or region.
Figure 5 Binding nodes
Table 4 Node parameters Parameter
Description
All
All nodes (including those added subsequently) in all regions will be bound.
Environment
All nodes in the selected environment will be bound.
Environment Tag
All nodes with the same tag will be bound.
Region
All nodes in the selected region will be bound.
- Enter basic information.
- Click Yes. The alarm template is created.
More Operations
After the alarm template is created, perform the operations listed in Table 5 if needed.
Operation |
Description |
---|---|
Copying a template |
Click Copy in the Operation column in the row that contains the template you want to copy. |
Modifying a template |
Click Modify in the Operation column in the row that contains the template you want to modify. |
Deleting a template |
Click Delete in the Operation column in the row that contains the template you want to delete. |
Starting and stopping a template |
Turn on or off the button () in the Operation column in the row that contains the template you want to start or stop. |
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