The monitoring and alerting feature can be used to monitor metrics in charts, providing real-time monitoring at the hour, day, and month granularity. Users can configure monitoring rules and monitoring frequency to set up monitoring.
The alerting methods currently supported by the system include email, Feishu, WeCom, Webex, DingTalk, and Webhook. To use this module, an enterprise domain administrator must complete the integration configuration for the office platform. For detailed steps, see Office Platform Integration.
To view and manage the monitoring configurations that have already been set up in the current project, see Monitoring Management @Monitoring Management
Common application scenarios
Step 1 Before configuring monitoring, the following prerequisites must be met:
Step 2 Click 'Create Monitoring' to open the settings dialog.
Step 3 Enter the monitoring name, select the monitoring time range and trigger factors, and configure the alerting rules, monitoring time, and notification methods.
Step 4 Click "Send Test" to view the test information in the configured monitoring receiver application and adjust the parameters.
warning
Here, using Feishu as an example, you need to complete the integration steps described in Basic Configuration for Lark Integration in advance
Step 5 Click Confirm to successfully create a new monitoring task. For more historical monitoring, click [Monitoring List] to view them in "Monitoring Management" under the project center.
The following prerequisites must be met:
Other operational steps are the same as above.
The selectable dates for the time range are related to the date dimensions in the dimension bar of the monitoring chart. For example, if the chart dimensions in the screenshot select p_date and payment date, then in the monitoring time range options, you can choose the range for these two date dimensions.
Using the payment date in the screenshot below as an example:
(1) Selecting the most recent time point means only monitoring the data for the latest payment date, that is, the data in the row for 2022-01-15.
(2) Selecting the most recent N time points and setting N to 5 means monitoring the data for the five rows from 2022-01-11 to 2022-01-15.
(3) Selecting the chosen time range means monitoring all data retrieved under the current payment date filter conditions.
The range for the most recent one or n time points depends on the date type of the time field, supporting 1/5/15 minutes, year-month-day-hour, year-month-day, year-week, and year-month.
For example, if the date type of the time field is set to "year-month-day-hour-minute" with a granularity of "15 minutes", and the condition is set to "most recent 1 time point", then the next time monitoring is triggered, the current data will be compared with the data from 15 minutes earlier.
If the date type is another type, such as seconds, biweek, bimonth, and so on, the following rules apply:
- If the date type is datetime: seconds, 10 minutes, 20 minutes, and so on, then the range for the most recent 1 time point is 1 second
- If the date type is date: biweek, bimonth, quarter, and so on, then the range for the most recent 1 time point is 1 day
Indicator value change monitoring supports configuring multiple alarm rules. You can choose to trigger an alarm when any rule or all rules are met. Indicator conditions are required, while dimension conditions are optional.
When any rule is selected, an alarm will be triggered when any one of the rules is met. For example, as shown in the figure below, an alarm is triggered when either the profit for the most recent day fluctuates by more than 5% compared to the previous day or the cost fluctuates by more than 10% compared to the previous day.
Dimension value change monitoring can monitor a specific dimension value in the current chart. An alert is triggered when the enumeration value of the dimension for the current day changes compared to 1 day ago, 7 days ago, or 30 days ago.
Intelligent fluctuation detection monitors indicator fluctuations over a period of time using the S-H-ESD algorithm for time series anomaly detection. An alert is triggered if an abnormal fluctuation is detected.
warning
Intelligent fluctuation detection only supports line charts; other chart types cannot be selected, and monitoring requires at least 15 time points
The selectable monitoring indicators are those in the current chart's indicator bar. Monitoring is supported for hidden fields and derived fields from analysis features, such as year-over-year and month-over-month fields.
Custom time: Monitoring can be triggered on working days, trading days, or every day.
When the chart's dataset is synchronized on a daily basis, monitoring can be configured to trigger upon completion of data synchronization.
The product currently supports the following alert notification methods: email, Feishu, WeCom, Webex, DingTalk, and Webhook. The specific alert notification method depends on the office platform integration configuration completed by your company's system administrator. If no notification methods are available here, please refer to Office Platform Integration for configuration. For IM group notifications, multiple group IDs can be added, separated by commas, and each group must have a bot. To send monitoring results to Feishu via Webhook, you need to parse and construct the request using a standardized output script.
For Webhook output, when the data meets a user-configured condition, an HTTP request will be sent to the specified recipient (Webhook address). The following provides the specification for the output script for your reference.
{ "secret": "xxx",//Key used for authentication by the business party "event": {//Message content "channel": "aeolus_monitor",//Used to distinguish monitoring messages from other types of messages "timestamp": 1610941345327,//Timestamp of this message "title": "monitor_alarm",//monitor_alarm: alarm message for monitoring "payload": { "status": 1,//0: alarm triggered, 1: alarm not triggered "alarm_rule": [//Specific alarm content and alarm conditions; this field is empty when the alarm is not triggered { "metric_monitor_condition": [//Constraint conditions for metrics "指标筛选条件满足任一条件:", "「sum(is_active_tea) 规则:>0.0」", "「sum(is_active_aeolus) 规则:>0.0」" ], "dimension_monitor_condition": [//Constraint conditions for dimensions "维度筛选条件满足所有条件", "tea_app_name in [Lantern]" ], "data_link": "https://...."//Link to the file containing the complete alarm content }, ...... ], "report_link": "'https://data.bytedance.net/aeolus/#/dataQuery?appId=555371&rid=39452'",//Chart link "date_range": {//Time range for chart queries "p_date_start": "2021-10-07",//Business start date "p_date_end": "2021-10-07"//Business end date }, "suggestion": "通知管理员",//Handling suggestions "monitor_name": "监控_1008_5"//Monitoring name } } }
{ "secret": "xxx", //Key used for authentication by the business party "event": {//Message content "channel": "aeolus_monitor", //Used to distinguish monitoring messages from other types of messages "timestamp": 1610941345327, //Timestamp of this message "title": "monitor_creation", //Create monitoring: monitor_creation, update monitoring: monitor_update, delete monitoring: monitor_delete, "payload": { "monitor_status": 1,//Monitoring status. 0: enabled, 1: paused' "name": "监控_1008_3", //Monitoring name "hour": "10:00",//Time when monitoring is activated "trigger_type": 0,//Trigger type. 0: scheduled, 1: base table update "notified": "{\"lark\":\"duxingwang.001\"}",//Feishu users to be notified "compute_type": 0,//Trigger factors, 0: "dimension + metric changes", 1: "dimension value changes", 2: "fluctuation anomaly detection" "extra": {//Additional information, currently stores alarm suggestions and whether the base table is kafka. json format' "external_header": "",//Can be ignored "need_confirm": false,//Whether alarm confirmation is required "show_condition": true,//Whether to display monitoring conditions in the alarm "suggestion": "通知管理员",//Handling suggestions "timezone": "UTC+08:00",//Time zone "urgent_alarm": { "emails": "", "times": "" } }, "shield_duration": 0,//Mute time span, in hours "lark_group_id": "{}",//Feishu group IDs to notify, comma-separated string "notice_type": -1,//Push method "frequency": 0,//Scheduled frequency. 0: daily, 1: hourly "date_filter_conf": {}, "rule_conf": {//Rule configuration, json format "rule_list": [//Rule list { "metric": {//Metric alarm conditions "rule_list": [//List of metrics to be satisfied { "dim_id": "sum_1586869275872", "op_unit": 0, "op_type": ">", "compare_type": 3, "op_value": 0 } ], "op": 1//1: logical AND, 0: logical OR }, "dimension": {//Dimension alarm conditions "where_list": [ { "option": { "is_report_filter": false, "filter_pattern": "Accurate", "custom_list": [] }, "val": [ "EasyShoot,galaxy" ], "pre_relation": "and", "val_option": { "true_all_selected": false, "preview_val": [], "excluded_val": [] }, "id": "1586869275867", "unique_id": 211008185453007, "op": "in" } ], "op": 1//1: logical AND, 0: logical OR } } ], "op": 1//1: logical AND, 0: logical OR }, "data_ready": {}, "owner_email_prefix": "duxingwang.001",//Creator "webhooks": [//Configured webhook id 14 ], "shield_start_time": "",//Mute alarm start time "domain_id": 1, "report_id": 39452//Chart id } } }
["tea_app_name", "is_active_tea"]//Column names of the chart ["1", "2"]//The first chart record that triggered the alert ["3", "5"] //The second chart record that triggered the alert ......
You can add text and URLs.
Immediately send a notification message for this configuration condition to preview the monitoring effect (test messages will not be sent to groups)
Access the monitoring list:
You can access the monitoring list through the dropdown menu of the visual monitoring page.
Alternatively, click Project Center - Scheduled Tasks - Monitoring Management to enter.
Users who can view and edit monitoring: monitoring creator, project administrator, owner of the chart associated with the monitoring, administrator of the dashboard where the chart associated with the monitoring is located.
To add collaborators for monitoring of charts within a dashboard, grant dashboard management permissions to others; this operation is not supported for personal dashboards.
Viewing scope | Scope of operation | |
|---|---|---|
Project administrator | Can view all monitoring items under the project | Has full permissions |
Project member | All monitoring items I created | Has full permissions |
Project member | All monitoring items created based on the charts I manage | Has full permissions |
Project member | All monitoring items where I am the recipient | No permissions |
Data: DAU status of each app on both Android and iOS platforms
Monitoring scenario: monitor products with a scale of over 10 million where the year-over-year growth for the month exceeds 10 percent
Configuration parameters:
If any app meets the criteria, an alert will be triggered:
Data: China Apple App Store Ranking - Overall Ranking
Monitoring scenario: monitor daily changes in the TOP 10 apps
Configuration parameters:
If any app meets the criteria, an alert will be triggered:
When performing monitoring operations to compare with X days ago, note the following two points:
To more conveniently and accurately complete the monitoring setup for comparison with X days ago, it is recommended to first configure the comparison rules for previous X days through Analysis - Period-over-period settings. After completing the comparison rule configuration, use the original value or absolute value of the period-over-period field in the monitoring rule settings to ensure that monitoring operates accurately according to the configured comparison rules.