Synthetic Testing Anomaly Detection¶
Current Document Scope
This document is the second step in the detection rule configuration process. After configuration is complete, return to the main document to continue to Step 3: Event Notification.
Synthetic Testing Anomaly Detection monitors the performance metrics or result counts of Synthetic Tests. During configuration, first select a synthetic test type, then select a protocol under that type. The Monitor loads the corresponding synthetic test targets, metrics, or data sources and triggers an alert when detection results reach the threshold.
It is suitable for scenarios such as monitoring the availability of URLs deployed in production environments, service port connectivity, and network latency. For example, monitor whether the average response time or availability of critical business APIs meets the target.
Detection Configuration¶
Detection Frequency¶
Set the time interval for executing detection.
-
Preset options: 1 minute, 5 minutes (default), 10 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 24 hours
-
Crontab mode: Click “Switch to Crontab Mode” to configure a custom interval. You can configure scheduled task execution based on intervals such as seconds, minutes, hours, days, months, and weeks.
Detection Window¶
Set the data time range queried by each detection (❗️The detection window should be greater than or equal to the detection frequency and must match the actual data reporting interval to avoid missed or false detections).
| Detection Frequency | Detection Window (drop-down options) |
|---|---|
| 30s | 1m/5m/15m/30m/1h/3h |
| 1m | 1m/5m/15m/30m/1h/3h |
| 5m | 5m/15m/30m/1h/3h |
| 15m | 15m/30m/1h/3h/6h |
| 30m | 30m/1h/3h/6h |
| 1h | 1h/3h/6h/12h/24h |
| 6h | 6h/12h/24h |
| 12h | 12h/24h |
| 24h | 24h |
- Custom format: Enter a custom detection window, for example: 20m (last 20 minutes), 2h (last 2 hours), 1d (last 1 day).
Detection Metrics¶
Set the metrics for detection data. You can set specified data generated by all or a single Synthetic Test in the current Workspace as detection metrics (❗️Avoid selecting high-cardinality fields as detection dimensions. Improper configuration with overly loose trigger conditions may cause frequent alerts. The maximum number of records returned by the current query is 100,000).
Two query modes are supported:
-
Synthetic Test Metrics (based on specific performance metrics)
-
Count Statistics (based on data source query)
Synthetic Test Metrics¶
Detect based on specific performance metrics of Synthetic Monitoring.
| Configuration Item | Description |
|---|---|
| Synthetic Test Type | In the selection box, first select a task type, then select a protocol. For example, select Mobile Synthetic Test / PING. |
| Synthetic Test Target | Select all or specified targets from the targets corresponding to the current type and protocol. |
| Metric | Select a metric provided by the current protocol. For example, Mobile PING can be detected by Average Ping Duration (ms). |
| Detection Dimension | All string-type (keyword) fields in the configuration data can be selected as detection dimensions. Currently, up to three fields can be selected as detection dimensions. By combining fields from multiple detection dimensions, a specific detection object can be determined. The system determines whether the statistical metric corresponding to a detection object meets the trigger condition threshold, and generates an event if the condition is met.(For example, if detection dimensions host and host_ip are selected, the detection object can be {host: host1, host_ip: 127.0.0.1}.) |
| Filter Conditions | Filter the data of detection metrics based on metric tags to limit the data range for detection. You can add one or more tag filters and use fuzzy match and fuzzy non-match filter conditions. |
Count Statistics¶
Perform statistical detection based on synthetic test data sources.
Based on different synthetic test types, you can select the corresponding data source (http_dial_testing, tcp_dial_testing, icmp_dial_testing, websocket_dial_testing, multi_dial_testing, etc.) to query and calculate statistics for Synthetic Tests.
When calculating statistics for Mobile Synthetic Test results, select the corresponding data source by protocol.
| Mobile Protocol | Data Source |
|---|---|
| HTTP | mobile_http_dial_testing |
| DNS | mobile_dns_dial_testing |
| TCP | mobile_tcp_dial_testing |
| PING | mobile_icmp_dial_testing |
You can limit the detection scope by keyword search or tag filtering.
In addition to simple queries, you can also use expression queries.
Additional Information¶
Additional fields are used only for extra queries and are not used for trigger condition evaluation. You can configure them in event notifications. If multiple matching values are detected, one record is returned at random.
Trigger Conditions¶
Configure trigger conditions and severity levels. When the query result contains multiple values, an event is generated if any value meets the trigger condition.
You can configure Fatal, Critical, Important, Warning thresholds and a Normal recovery condition.
| Level | Configuration | Description |
|---|---|---|
| Fatal | When Result >= [value] |
Highest-level alert; requires immediate action |
| Critical | When Result >= [value] |
High-level alert; requires priority handling |
| Important | When Result >= [value] |
Medium-level alert; requires attention |
| Warning | When Result >= [value] |
Low-level alert; keep an eye on it |
| Normal | No event is generated after [N] detections |
After the detection rule takes effect, if the data detection result returns to normal from an abnormal state (Fatal, Critical, Important, Warning) within the configured custom number of detections, a recovery alert event is triggered. ❗️ Recovery alert events are not subject to alert muting. If the number of detections for recovery alert events is not set, the alert event will not recover and will remain in Events > Unrecovered Events List. |
For more details, see Event Severity Levels.
Advanced Options¶
Consecutive Trigger Evaluation¶
When enabled, an event is generated only when the trigger condition is continuously met, avoiding false alerts caused by transient fluctuations (❗️The maximum configuration is 10 times).
Large-Batch Alert Protection¶
Enabled by default.
When the number of alerts generated by a single detection exceeds the preset threshold, the system automatically switches to a summary-by-status strategy: it no longer processes alert objects one by one, but generates and sends a small number of summary alerts based on event status.
This ensures timely notifications while significantly reducing alert noise and avoiding timeout risks caused by processing too many alerts.
When this switch is enabled, such Event Details generated after the Monitor detects an anomaly will not display historical records or related events.
No Data¶
Handling strategy when the query result for detection metrics is empty within the detection window:
| Option | Description |
|---|---|
| Do not trigger an event (default) | Do not trigger an event when there is no data. This applies to scenarios where data loss is allowed. |
| Treat query result as 0 | Treat empty data as the value 0 and continue to determine whether to generate an abnormal event according to the configured trigger conditions. |
| Trigger No Data event | Generate a No Data event once per No Data occurrence for the same object; after recovery, a new No Data event can be generated if No Data occurs again. |
| Continuously trigger No Data events | When the same object continuously meets the No Data condition, generate No Data events at the detection frequency until data recovers. For configuration, see No Data. |
| Trigger Fatal event | Trigger a Fatal-level event when there is no data. |
| Trigger Critical event | Trigger a Critical-level event when there is no data. |
| Trigger Important event | Trigger an Important-level event when there is no data. |
| Trigger Warning event | Trigger a Warning-level event when there is no data. |
| Trigger recovery event | Trigger a recovery event when there is no data. |
After selecting the action to trigger an event, enter the No Data duration. It is recommended to set it to ≥ the time interval of the detection window. When No Data and abnormal conditions are met at the same time, the system prioritizes the No Data handling result.
When trigger conditions, No Data, and information generation are configured at the same time, the trigger priority is as follows: No Data > Trigger Conditions > Information Event Generation.
That is, first determine whether No Data occurs, then determine whether the threshold is triggered, and finally determine whether to generate an information event.
Information Generation¶
After enabling this option, you must configure Information Generation Conditions. The system writes an "Information" event only when the detection result does not trigger any of the "Fatal", "Critical", "Important", or "Warning" thresholds and meets the information generation conditions.
This applies to scenarios where normal state changes or low-priority information need to be recorded.
Follow-up Configuration¶
After completing the above detection configuration, continue with the following:
-
Event Notification: Define the event title, content, notification members, No Data handling, and associated Incidents;
-
Alert Configuration: Select an Alert Policy and set Notification Targets and mute periods;
-
Associate: Associate a dashboard for quick navigation to view data;
-
Permissions: Set operation permissions to control who can edit or delete this Monitor.
