By creating alerts, you can set alert rules for specific monitored objects. When a rule is triggered, the system will send an alert message to the specified contact group in the specified alerting mode. This reminds you to take necessary actions to solve the problem.
- You have created contacts. You can only set a contact group as the notification receiver of an alert.
Default behaviors of alert notifications:
- To prevent you from receiving a large number of alert notifications in a short period of time, the system only sends one message for repeated alerts within 24 hours.
- If no duplicate alerts are generated within five minutes, Application Real-Time Monitoring Service (ARMS) sends a recovery email to notify you that the alert has been cleared.
- After a recovery email is sent, the alert status is reset. If this alert arises again, it is deemed as a new one.
An alert widget is essentially a data display method of datasets. When you create an alert widget, a dataset is created to store the underlying data of the alert widget.
Create an alert
To create an alert for an application monitoring job on Java Virtual Machine-Garbage Collection (JVM-GC) times in corresponding-period comparison, perform the following steps:
- Log on to the console. Click the target application in Applications. In the left-side navigation pane, choose .
- On the Alert Policies page, click Create Alert in the upper-right corner.
- In the Create Alert dialog box, enter all required information and click Save.
- Enter Alert Name, for example, alert on JVM-GC times in corresponding-period comparison.
- Select an application for Application Site and an application group for Application Group.
- In the Type drop-down list, select the type of the monitoring metrics, for example, JVM_Monitoring.
- Set Dimension to Traverse.
- Set alert rules.
- Select Meet All of the Following Criteria.
- Edit the alert rule. For example, an alert is triggered when the value of N is 5 and
the average value of JVM_FullGC increases by 100% compared with that in the previous
Note To add another alert rule, click + on the right of Alert Rules.
- Set Notification Mode. For example, select Email.
- Set Notification Receiver. In the Contact Groups box, click the name of a contact group. If the contact group appears in the Selected Groups box, the setting is successful.
Description of basic fields
The following table describes the basic fields of the Create Alert dialog box.
|Application Site||The monitoring job that has been created.||Select a value from the drop-down list.|
|Type||The type of the metric.||The types for the three alerts are different:
|Dimension||The dimensions for alert metrics (datasets). You can select None,"=", or Traverse.||
|Last N Minutes||The system checks whether the data results in the last N minutes meet the trigger condition.||Range of N: 3 to 3600 minutes.|
|Notification Mode||Email, SMS, and DingTalk chatbot are supported.||You can select multiple modes. If you want to set DingTalk chatbot alert, see Enable DingTalk chatbot alert.|
|Alert Quiet Period||You can enable or disable Alert Quiet Period. By default, it is enabled.||
|Alert Severity||Valid values include Warn, Error and Fatal.||None|
|Notification Time||The time when the alert was sent. No alert notification is sent out of this time period, but alert events are recorded.||For more information about alert event history, see Alert management.|
|Notification Content||The custom content of the alert.||You can edit the default template. In the template, the four variables, $AlertName, $AlertFilter, $AlertTime, and $AlertContent, are preset. (Other preset variables are not supported currently.) The rest of the content can be customized.|
Description of complex general fields: Period-over-period comparison
- N-minute-on-N-minute comparison: Assume that β is the data (optionally average, sum, maximum, or minimum) in the last N minutes, and α is the N-minute data starting from 2N minutes ago. The N-minute-on-N-minute comparison is the percentage increase or decrease of β as compared to α.
- N-minute-on-N-minute hourly comparison: Assume that β is the data (optionally average, sum, maximum or minimum) in the last N minutes, and α is the N-minute data from an hour ago. The N-minute-on-N-minute hourly comparison is the percentage increase or decrease of β as compared to α.
- N-minute-on-N-minute daily comparison: Assume that β is the data (optionally average, sum, maximum or minimum) in the last N minutes, and α is the N-minute data a day ago. The N-minute-on-N-minute daily comparison is the percentage increase or decrease of β as compared to α.
Description of complex general fields: Alert data revision strategy
You can select "Zero fill", "One fill", or "Zero fill null" (default). This feature is generally used to fix anomalies in data, including no data, abnormal composite metrics, or abnormal period-on-period comparison.
- Zero fill: fixes the value checked to 0.
- One fill: fixes the value checked to 1.
- Zero fill null: does not trigger the alert.
- Anomaly 1: No data
User A wants to use the alert feature to monitor the page views. When creating the alert, user A selects Browser Monitoring Alert. User A sets the alert rule as follows: N is 5 and the sum of the page views is at most 10. If the page is not hit, no data is reported and no alert is sent. To solve this problem, you can select "Zero fill" as the alert data revision policy. If you do not receive any data, it considered that zero data is received. This meets the alert rule and an alert is sent.
- Anomaly 2: abnormal composite metrics
User B wants to use the alert feature to monitor the real-time unit price of a product. When creating the alert, user B selects Custom Monitoring Alert. User B sets the dataset of variable a to the current total price, and the dataset of variable b to the current total items. User B also sets the alert rule as follows: N is 3 and the minimum value of current total price divided by current total items is at most 10. If the current total of items is 0, the value of the composite metric, current total price divided by current total items, does not exist. No alert will be sent. To solve this problem, you can select "Zero fill" as the alert data revision policy. The value of the composite metric, current total price divided by current total items, is now considered as 0. This meets the alert rule and an alert will be sent.
- Anomaly 3: Abnormal period-on-period comparisons
User C wants to use the alert function to monitor the CPU utilization of the node machine. When user C creates the alert, C selects Application Monitoring Alert, and sets the alert rule as follows: N is 3 and the average user CPU utilization of the node machine decreases by 100% compared with the previous monitoring period. If the user's CPU fails to work in the last N minutes, the α cannot be obtained. This means the period-on-period result does not exist. No alert is sent. To solve this problem, you can select the alert data revision strategy as "One fill", and consider the period-on-period comparison result as a decrease of 100%. This meets the alert rule and an alert will be sent.
What to do next
You can query and delete alert records in alert management.