All Products
Search
Document Center

Application Real-Time Monitoring Service:Configure discarded metrics

Last Updated:Mar 11, 2026

As your monitored environments grow, Managed Service for Prometheus collects an increasing volume of metrics -- many of which may no longer serve active dashboards, alerts, or queries. These unused metrics consume storage and increase monitoring costs. Discard unnecessary metrics to stop their collection and storage, and reduce your Prometheus billing. You can restore any discarded metric at any time to resume collection.

Identify metrics to discard

Before discarding metrics, review your metric volume to find high-cost, low-value candidates. Focus on metrics that meet one or more of these criteria:

  • High volume, no consumers: Metrics with a large Proportion value that are not used in any dashboard, alert rule, or recording rule.

  • Redundant metrics: Multiple metrics that track the same dimension at different granularities, where only one granularity is needed.

  • Deprecated workloads: Metrics from services, jobs, or namespaces that are no longer active.

To view your current metrics:

  1. Log on to the ARMS console. In the left-side navigation pane, choose Managed Service for Prometheus > Instances.

  2. Click the name of the Managed Service for Prometheus instance.

  3. In the left-side navigation pane, click Service Discovery. On the Metrics tab, review the collected metrics.

    Note

    Use the dropdown filters to filter by job name or metric type. Enter a keyword in the search box for fuzzy matching. Sort by Proportion or Metric Quantity in Last 10 Minutes in descending order to surface the highest-volume metrics first.

    ParameterDescription
    Metric NameThe metric identifier
    Job NameThe scrape job that collects this metric
    Metric TypeBasic Metrics or Custom Metrics
    ProportionThe percentage of total reported data that this metric represents
    Metric Quantity in Last 10 MinutesThe number of data points reported and stored in the last 10 minutes

Discard metrics

After you identify metrics that are no longer needed, discard them to stop collection and storage. Discarded metrics are not charged.

  1. Log on to the ARMS console. In the left-side navigation pane, click Integration Management.

  2. On the Integrated Environments tab, click the name of the environment that you want to manage.

  3. Click the Metric Scraping tab, and then click Discard Metrics.

  4. In the text box, enter the names of the metrics to discard, one metric name per line. Then click Update.

    Note

    Separate metric names with line breaks only. Commas, semicolons, colons, and spaces are not supported as separators.

    Discard Metrics configuration

Restore discarded metrics

To resume collecting a previously discarded metric, remove it from the discard list.

Important

After you restore discarded metrics, the metrics are no longer in the discarded state. They can be reused, and will incur fees.

  1. Log on to the ARMS console. In the left-side navigation pane, click Integration Management.

  2. On the Integrated Environments tab, click the name of the environment that you want to manage.

  3. Click the Metric Scraping tab, and then click Discard Metrics.

  4. In the text box, delete the metric names you want to restore. Then click Update.

Limits

The following metrics cannot be discarded:

  • Basic metrics for Container Service for Kubernetes (ACK) clusters

  • Metrics reported through Pushgateway, RemoteWrite, or the OpenTelemetry protocol

  • Metrics reported after the metric convergence feature is enabled, such as metrics from Alibaba Cloud Service Mesh (ASM) Premium Edition

  • Advanced metrics ingested from cloud services (second-level metrics that do not start with Aliyun)

  • Metrics of a general-purpose Managed Service for Prometheus instance. To view these metrics, go to the instance details page and click Metric Management in the left-side navigation pane.

Prerequisites

Before you begin, ensure that you have: