You can deliver the data of a Prometheus instance to ApsaraMQ for Kafka, MaxCompute, or another Prometheus instance based on your business requirements. This topic describes how to create a data delivery task and configure an event target.
Prerequisites
Your cloud service is integrated with Managed Service for Prometheus of Cloud Monitor 2.0.
EventBridge is activated. Authorization is completed in the EventBridge console. For more information, see Activate EventBridge and grant permissions to a RAM user.
NoteThis feature requires EventBridge (commercially available since June 3, 2025). Refer to EventBridge fees for billing details.
An ApsaraMQ for Kafka instance, a MaxCompute instance, or another Prometheus instance is created. An instance is used as an event target. Prometheus instance data is delivered to an event target. For more information, see Overview or Import monitoring data from a Prometheus instance to MaxCompute.
Limitations
When you deliver the data in the virtual private cloud (VPC), if the VPC where the Prometheus instance resides is not the same as the target VPC, ensure that the IP address of the vSwitch in the target VPC has been added to the whitelist of the Prometheus instance. Otherwise, network connection may fail.
On the vSwitch page in the VPC console, you can obtain the CIDR block of the vSwitch.

The following table lists the instances that support data delivery.
Instance
Description
Prometheus for Alibaba Cloud services
The free instance, except for those starting with the name cloud-product-prometheus.
Prometheus for container services
N/A
Prometheus for Flink Serverless
N/A
Prometheus for Kubernetes
N/A
General-purpose Prometheus instance
The general-purpose instance, except for those whose data is reported through OpenTelemetry endpoints.
You can export only real-time data that is generated after a task is created. Historical data cannot be exported.
Procedure
Log on to the Cloud Monitor 2.0 console, and select a workspace. In the left navigation pane, choose .
In the left-side navigation pane, click Data Delivery.
On the Data Delivery page, select a region in the top navigation bar and click Create Task.
In the dialog box that appears, set the Task Name and Task Description parameters, and click OK.
On the Edit Task page, configure the data source and event target.
Click + Add Data Source, set the parameters, and then click OK. The following table lists the parameters.
Parameter
Description
Example
Prometheus Instance
The Prometheus instance whose data you want to deliver.
c78cb8273c02*****
Data Filtering
The label of the metric to be filtered.
Regular expressions are supported. Use line breaks to separate multiple conditions. The data can be delivered only when the relationship among the conditions is Logical AND.
__name__=AliyunEcs_CPUUtilization|AliyunEcs_memory_usedutilization regionId=cn-hangzhou id=i-2ze0mxp.*Data Labeling
The label you add to metric data to be delivered. Use line breaks to separate multiple labels.
deliver_test_key1=ssss deliver_test_key2=yyyyClick Add Target and configure the event target. We recommend that you use the default settings in the Retry section.
On the Edit Task page, click Save.
The task is in the Not Started state. On the Task Details page, click Enable to start the task. After the task is started, the data will be delivered to the target with a delay of 2 to 5 minutes.
Example
To make Prometheus instance data compatible with other Alibaba Cloud services, Managed Service for Prometheus uses the JSON format.
Prometheus instance data:
http_requests_total{method="POST", handler="/api/tracks"} 1027 1609459200000Data in the JSON format:
{ "__name__": "http_requests_total", "method": "POST", "handler": "/api/tracks", "value": 1027, "timestamp": 1609459200000 }