All Products
Search
Document Center

Managed Service for Prometheus:Use an intelligent detection operator to find abnormal data

Last Updated:Oct 16, 2025

Managed Service for Prometheus uses an intelligent detection operator to automatically detect abnormal fluctuations in key performance indicator (KPI) time series data. This feature performs anomaly detection on time series and helps you make decisions for subsequent actions, such as alerting, automatic damage control, and root cause analysis. This topic describes how to use the intelligent detection operator to detect abnormal data fluctuations.

Limits

This feature is not supported for v2 instances.

Find abnormal data fluctuations in a Prometheus instance

  1. Log on to the Managed Service for Prometheus console.

  2. In the left navigation pane, click Instances.

  3. Click Grafana Workspace for the target instance.

  4. In the navigation pane on the left, click the ert (Explore) icon. Then, in the upper-left corner, select a data source from the drop-down list to the right of Explore.

  5. In the text box to the right of Metrics browser, enter the following sample Prometheus Query Language (PromQL) statement. This anomaly detection operator detects abnormal data fluctuations for the current metric over specific periods.

    anomaly_detect(arms_cms_collector_duration_seconds[180m], 3)
    Note
    • arms_cms_collector_duration_seconds is the name of the target metric. Replace it as needed.

    • The PromQL query must return a range vector. To do this, add a range selection such as [180m] after the metric name. The default range selection is [180m] and the default parameter is 3. If you have already applied other aggregate functions, change the range selection to [180m:] to ensure that the data type is a range vector. For example: anomaly_detect(sum(node_memory_free_bytes)[180m:], 3).