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
An ACK cluster or an ECS instance is created. For more information, see Create an ACK managed cluster and Create an instance.
Metrics are exposed at the target address in the ACK cluster or ECS instance.
Procedure
The following uses an ACK cluster as an example.
Log on to the Managed Service for Prometheus console.
In the left navigation pane, click Integration Management.
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.
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.

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.

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.