Skip to content

Composite Detection


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.

Data Scope: All (logical operations based on the results of the combined monitors)

Combine the results of multiple monitors into one monitor through expressions, and ultimately trigger alerts based on the combined result. This is suitable for complex scenarios such as multi-condition joint evaluation and dependency detection.

Detection Configuration

Detection Frequency

A composite monitor does not have a fixed detection frequency. Instead, it determines based on the event status of the selected monitors. Because the detection frequencies of individual monitors may differ, the system selects the largest detection frequency among them and evaluates at that frequency.

Example: Monitor A has a detection frequency of 5 minutes, and Monitor B has a detection frequency of 1 hour. The composite monitor A&&B then follows B for evaluation (once per hour). After B triggers detection, a logical evaluation is performed using the detection result of Monitor B and the latest detection result of Monitor A.

Detection Metrics

Select Monitors

Select at least two monitors as combination objects. The system automatically assigns identifiers (A, B, C...) for reference in subsequent logical expressions.

Configuration Item Description
Monitor A/B/C... Select a created monitor as a combination object. Its by-condition groups are displayed on the right.
Create Click Create on the right side of the current row, select a detection type, and complete the configuration. After saving, the monitor is automatically selected for that row.
Add Monitor Click to add more monitors. Up to 10 are supported.

If you cancel creation, the original combination configuration remains unchanged. The newly created monitor is saved independently and remains after the combination configuration is canceled. You can manage it in the Monitor List.

Note

If the BY configuration of a monitor does not comply with the rules (for example, the grouping dimensions have no intersection), the monitor can still be created successfully, but no alerts will be generated.

Combination Method

Use logical expressions (AND, OR, NOT) to define whether the composite monitor triggers an event. When all selected monitors trigger an abnormal state, the expression evaluates to true (true); otherwise, it evaluates to false (false).

1. Supported Operators

Operator Description Example
&& AND A && B: Both A and B are in an abnormal state
\|\| OR A \|\| B: Either A or B is in an abnormal state
! NOT !C: C is not in an abnormal state

2. Complex Expressions

Supports combined use, for example A && B || !C

Logical Operation Details

How Is "True" (true) Defined?

Based on the selected monitors, if the monitors have groups, the expression evaluates to "true" (true) only when the common groups of all monitors are all in an abnormal state.

Example: If Monitor A is selected (hosts 1, 2, 3, and 4 generate alerts) and Monitor B is selected (hosts 2, 3, 5, and 6 generate alerts), then the composite monitor (A&&B) returns "true" (true) only for hosts 2 and 3, generating alerts.

Handling Inconsistent Groups

When the monitors in the combination method have inconsistent groups, the system uses the intersection of the grouping dimensions as the final dimension_tags.

Example: Select Monitor A: by host; Monitor B: by host, device.

In this case, the intersection host is used as the final dimension. Monitor A can be evaluated normally, while for Monitor B, the most severe level among all devices of a host is used as the status of that host:

Monitor B Original Status Aggregated Status (by host)
Host a, device1: error
Host a, device2: critical
Host a, device3: ok
Host a: critical (most severe)
Host b, device4: error
Host b, device5: info
Host b: error (most severe)

No common groups: If the monitor groups have no intersection (for example, A is by host and B is by pod), no alerts will be generated.

Subsequent Configuration

After completing the above detection configuration, continue with the following:

  1. Event Notification: Define the event title and content, notification members, data gap handling, and associated incidents;
  2. Alert Configuration: Select an Alert Policy and set Notification Targets and the mute period;
  3. Associations: Associate dashboards for quick navigation to view data;
  4. Permissions: Set operation permissions to control who can edit or delete this monitor.

FAQ

Do the original monitors being combined continue to monitor normally?

Yes. The combined monitors are not affected in any way and continue to run and alert independently according to their own configurations.

How does a composite monitor calculate Triggers?

One basic detection counts as 1 Trigger, and the detection frequency matches the largest detection frequency among the combined monitors. The final usage is the above base count multiplied by the consumption multiplier.

Feedback

Is this page helpful?