Monitor the volume of metric data reported to your Managed Service for Prometheus instance and discard unneeded metrics to reduce fees and resource consumption.
Metrics that cannot be discarded
-
The advanced metrics for the following cloud services cannot be discarded:
-
Microservices Engine (MSE)
-
Lindorm
-
ApsaraMQ for Confluent
-
ApsaraMQ for Kafka
-
ApsaraMQ for RocketMQ
-
Alibaba Cloud Service Mesh (ASM)
-
PAI-EAS online model service
-
Lingjun Intelligent Computing
-
-
You cannot configure or restore discarded metrics for Common Managed Service for Prometheus instances. You can view metric details on the Metric Management page of the instance.
-
Other metrics that cannot be discarded include:
-
Basic metrics for container observability.
-
Metrics reported directly through PushGateway, Remote Write, or the OpenTelemetry (OTLP) protocol.
-
Metrics reported after metric convergence is enabled (for example, the advanced features of Alibaba Cloud Service Mesh (ASM)).
-
Advanced metrics ingested in a cloud service environment (second-level metrics that do not start with
Aliyun).
-
Prerequisites
You have created a Managed Service for Prometheus instance. For instructions, see:
View metrics
Log on to the Cloud Monitor console. In the left navigation pane, choose . The Instances page appears.
-
Click the name of the target instance, and then click Metric Management in the navigation pane on the left.
-
On the Metric Statistics page, select a time range in the upper-right corner.
Configure discarded metrics
Discard metrics that your Managed Service for Prometheus instance no longer needs to monitor. Discarded metrics no longer incur charges.
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, click Integration Management.
-
On the Integrated Environments tab, click the name of the target integration. Then, click the Metric Scraping tab and click Discard Metrics. In the Discarded Metrics text box, enter the names of the metrics that you want to discard (for example,
avg_rt,bytes_in, andbytes_out), one per line. Then, click Update.ImportantEnter each metric name on a separate line. Do not add any delimiters, such as commas or semicolons, or extra spaces.
Restore discarded metrics
Restoring a discarded metric resumes charge accrual for that metric.
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, click Integration Management.
-
On the Integrated Environments tab, click the name of the target integration. Then, click the Metric Scraping tab and click Discard Metrics. In the configuration pane on the right, delete the metrics that you want to restore, and then click Update.