All Products
Search
Document Center

Managed Service for Prometheus:Other Prometheus service discovery configurations

Last Updated:Jan 05, 2026

The custom collection feature lets you collect metrics exposed at specified addresses in a Container Service for Kubernetes (ACK) cluster or an Elastic Compute Service (ECS) instance. This makes Managed Service for Prometheus monitoring of Application Real-Time Monitoring Service (ARMS) more flexible, automated, and manageable.

Limitations

This feature supports only ACK clusters and ECS instances.

Billing

Using the custom collection feature incurs fees. For more information, see Instance billing.

Prerequisites

Procedure

The following uses an ACK cluster as an example.

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

  2. In the left navigation pane, click Integration Management.

  3. On the Integrated Environments tab, view the environment list on the Container Service tab. Find the ACK instance and click Metric Scraping in the Actions column.

  4. On the Metric Scraping tab, click Customize Collection.

View custom collection configurations

On the Customize Collection page, you can view all existing custom collection configurations in the current ACK cluster or ECS instance.

image

Add a custom collection configuration

On the Customize Collection page, click Create. In the Add Custom Collection Task panel, specify Task name, enter the YAML content for the custom collection in the code editor, and click Precheck and Create.

image

Related operations

Edit

In the list of custom collection configurations, find the target configuration and click Edit Configuration in the Actions column. In the Edit Custom Collection Task panel, modify the YAML content.

Delete

In the list of custom collection configurations, find the target configuration and click Delete in the Actions column.

Disable

In the list of custom collection configurations, find the target configuration and click Close in the Actions column. After you disable the configuration, it is no longer in effect.