All Products
Search
Document Center

Application Real-Time Monitoring Service:Use an intelligent detector to detect data anomalies

Last Updated:Oct 18, 2025

Managed Service for Prometheus uses an intelligent detector to identify abnormal fluctuations of KPI time-series data. This helps you make informative decisions in automatic data loss protection and root cause analysis if alerts occur. This topic describes how to use an intelligent detector to identify abnormal data fluctuations.

Limitations

Currently, this feature is not available for V2 instances.

Detect abnormal data fluctuations of an instance

  1. Log on to the ARMS console.

  2. In the left navigation pane, choose Managed Service for Prometheus > Instances.

  3. Find the Prometheus instance and click the link in the Grafana Workspace column.

  4. In the left-side navigation pane, click the ce icon. In the upper-left corner of the page, select a data source from the drop-down list to the right of Explore.

  5. In the text box on the right of the Metrics browser drop-down list, enter the following PromQL statement. The statement is used as a sample anomaly detector. This way, the abnormal data fluctuations about the metric over a specific period of time can be identified.

    anomal_detect (arms_cms_collector_duration_seconds[180m],3)
    Note
    • arms_cms_collector_duration_seconds: the metric name. Replace it based on your business scenario.

    • The data type of the metric that the PromQL statement queries must be range vector. Therefore, you must append a time selector to the right of the metric name. The default value of the time selector is [180m]. The default value of the parameter is 3. If you execute other aggregate functions in advance, you must modify the time selector to [180m:] in the PromQL statement. This way, you can change the data type of the metric to range vector. For example, you can modify the PromQL statement to anonym_detect (sum(node_memory_free_bytes)[180m:],3).