All Products
Search
Document Center

Managed Service for Prometheus:Configure discarded metrics

Last Updated:Feb 27, 2026

You can view the amount of metric data reported by your Prometheus instance to evaluate monitoring scope and data freshness. To reduce costs and resource consumption, discard metrics that are no longer needed.

Prerequisites

A Prometheus instance has been created. For more information, see:

View metrics

  1. Log on to the CloudMonitor console.

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

  3. Click the name of the target instance. In the navigation pane, click Metric Management.

  4. On the Metric Statistics page, set a time range in the upper-right corner to view metric statistics for the specified period.

Discard metrics

Discarded metrics do not incur fees. To discard metrics that your Prometheus instance no longer needs to monitor:

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

  2. In the left-side navigation pane, click Access Management.

  3. On the Integrated Environments tab, click the name of the target environment.

  4. On the Metric Scraping tab, click Discard Metrics. Enter the names of the metrics to discard and click Update.

    Important

    Enter each metric name on a separate line. Do not add commas, semicolons, colons, or spaces.

Re-enable discarded metrics

After you re-enable discarded metrics, they start to incur fees again.

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

  2. In the left-side navigation pane, click Access Management.

  3. On the Integrated Environments tab, click the name of the target environment.

  4. On the Metric Scraping tab, click Discard Metrics. In the panel that appears, delete the metrics you want to re-enable and click Update.

Metrics that cannot be discarded

  • You cannot discard the advanced metrics from the following integrated cloud services:

    • Microservices Engine (MSE)

    • Lindorm

    • ApsaraMQ for Confluent

    • ApsaraMQ for Kafka

    • ApsaraMQ for RocketMQ (5.0)

    • Service Mesh (ASM)

    • PAI-EAS online model service

    • Intelligent Computing LINGJUN

  • You cannot configure or enable discarded metrics for general-purpose Prometheus instances. You can view metric details on the instance's Metric Management page.

  • Other metrics that cannot be discarded:

    • Basic metrics for container monitoring.

    • Metrics that are pushed directly through Pushgateway, RemoteWrite, or the OpenTelemetry (OT) protocol.

    • Metrics reported after the metric convergence feature is enabled. For example, this feature is available in Service Mesh (ASM) Premium Edition.

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