Skip to content

Outlier Detection


Document Scope

This document is the second step in the detection rule configuration process. After configuration is complete, return to the main document Continue to Step 3: Event Notifications.

Use algorithms to analyze the metrics or statistical data of detection objects in a specific group to identify whether there are significant outlier deviations. If the detected inconsistency exceeds the preset threshold, the system generates an outlier detection anomaly event for subsequent alert tracking and analysis. This approach helps promptly identify and handle potential anomalies, improving monitoring accuracy and response speed.

It is suitable for configuring appropriate distance parameters based on the characteristics of metric data, so that alerts are triggered when data significantly deviates from the normal range. For example, when the memory usage of a Host is significantly higher than that of other Hosts in the same group, the system can promptly issue an alert, quickly identify, and respond to potential performance issues.

Detection Configuration

Detection Frequency

Set the time period for executing detection. It automatically matches the selected detection interval.

  • Selected by default: 5 minutes

Detection Interval

Set the data time range queried for each detection (❗️The detection interval should be greater than or equal to the detection frequency and must match the actual data reporting period to avoid missed detections or false positives).

Detection Interval (Dropdown Options) Detection Frequency
15m 5m
30m 5m
1h 15m
4h 30m
12h 1h
1d 1h

Detection Metric

Define the detection data source and aggregation method based on DQL (❗️Avoid selecting high-cardinality fields as detection dimensions. Improper configuration with overly loose trigger conditions may cause frequent alerts. The current query returns a maximum of 100,000 records).

Configuration Elements

Configuration Item Description
Workspace Default: current workspace; can switch to other authorized workspaces

After authorization, you can use detection metrics from other workspaces under the current account to create Monitors. Once the rule is created, cross-workspace alert configuration is enabled. Note that when you select another workspace, the detection metric dropdown list shows only data types authorized for use in the current workspace
Data Source Type Metrics, Logs, Infrastructure, Resource Catalog, Events, APM, RUM, Network, and Profiling, etc.
Query Method Simple Query, Expression Query
Filter Conditions Filter detection metric data based on metric tags to limit the data range for detection; supports adding one or more tag filters; supports fuzzy match and fuzzy non-match filter conditions
Aggregation Algorithm Avg by (average), Min by (minimum), Max by (maximum), Sum by (sum), Last (last value), First by (first value), Count by (count of data points), Count_distinct by (count of distinct data points), p50 (median value), p75 (value at the 75th percentile), p90 (value at the 90th percentile), p99 (value at the 99th percentile)
Detection Dimension String-type (keyword) fields in the configuration data can all be selected as detection dimensions. Currently, up to three fields can be selected as detection dimensions. Combining multiple detection dimension fields determines a specific detection object. 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 you select detection dimensions host and host_ip, the detection object can be {host: host1, host_ip: 127.0.0.1}.)
Alias Custom detection metric name

Click to view Query Method Details.

Trigger Conditions

Configure trigger conditions and severity. When the query result contains multiple values, an event is generated if any value meets the trigger condition.

Outlier Detection uses the DBSCAN algorithm to identify anomalies and supports configuring thresholds for the Critical level and recovery conditions for Normal.

Level Configuration Description
Critical DBSCAN algorithm, distance [value] Use the DBSCAN algorithm to detect outliers. The distance parameter indicates the maximum distance between two samples for one to be considered adjacent to the other (float, default=0.5).

❗️ You can configure any floating-point value in the range (0-3.0). If not configured, the default distance parameter is 0.5. A larger distance setting results in fewer anomalies; a distance value that is too small may detect a large number of outliers, while a distance value that is too large may result in no outliers being detected. Set an appropriate distance parameter according to different data characteristics.
Normal [N] detections with no event generated After the detection rule takes effect, if the data detection result recovers from abnormal (Critical) to Normal within the configured custom number of detections, a recovery alert event is triggered.
❗️ Recovery alert events are not subject to Alert Mute. 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, refer to Event Level Description.

High-Volume 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 status-based summary strategy: it no longer processes alert objects one by one; instead, it generates a small number of summary alerts based on event status and pushes them.

This ensures timely notifications while significantly reducing alert noise and avoiding timeout risks caused by processing too many alerts.

When this switch is enabled, the event details of this type generated after the Monitor subsequently detects an anomaly will not display history or related events.

Data Gap

Handling strategy when the query result for the detection metric is empty within the detection interval:

Option Description
Do not trigger an event (default) Do not trigger an event when there is no data. This applies to scenarios where data absence is allowed.
Treat query result as 0 Treat empty data as a value of 0 and continue to determine whether to generate an anomaly event according to the configured trigger conditions.
Trigger Data Gap Event Generate one data gap event for each data gap cycle for the same object. After recovery, a new data gap event can be generated if a data gap occurs again.
Continuously Trigger Data Gap Events When the same object continuously meets the data gap condition, generate data gap events at the detection frequency until data recovers. For configuration, see Data Gap.
Trigger Critical Event Trigger a Critical severity event when there is no data.
Trigger Recovery Event Trigger a recovery event when there is no data.

After selecting an action that triggers an event, enter the data gap duration. It is recommended to set it to ≥ the detection interval duration. When data gap and anomaly conditions are met at the same time, the system prioritizes the data gap handling result.

When trigger conditions, data gaps, and Info Generation are configured at the same time, the trigger priority is as follows: Data Gap > Trigger Condition > Info Event Generation.

That is, first determine whether a data gap exists, then determine whether the threshold is triggered, and finally determine whether to generate an Info event.

Info Generation

When this option is enabled, the system writes all detection results that do not match the above trigger conditions as "Info" events.

This applies to scenarios where normal state changes or low-priority information need to be recorded.

Subsequent Configuration

After completing the above detection configuration, continue to configure:

  1. Event Notifications: Define the event title, content, notification members, data gap handling, and related Incidents;

  2. Alert Configuration: Select an Alert Policy, and set notification targets and mute periods;

  3. Related Dashboards: Associate a dashboard for quick navigation to view data;

  4. Permissions: Set operation permissions to control who can edit/delete this Monitor.