When you need to stream Prometheus metrics to downstream services for event-driven processing, batch analytics, or cross-instance aggregation, data delivery provides a managed pipeline through EventBridge. It converts Prometheus metrics to JSON and routes them to ApsaraMQ for Kafka, MaxCompute, or a Prometheus Remote Write endpoint.
Scenario | Target | Typical use |
Event-driven processing | ApsaraMQ for Kafka | Stream metrics to Kafka topics for real-time alerting or event pipelines |
Batch analytics | MaxCompute | Archive metrics for long-term storage and large-scale analysis |
Cross-instance aggregation | Prometheus Remote Write | Consolidate metrics from multiple Prometheus instances into a single view |
Prerequisites
Before you begin, make sure that you have:
A Prometheus instance for one of the following monitoring scenarios:
EventBridge activated and authorized in the EventBridge console. For more information, see Activate EventBridge and grant permissions
A target service to receive the delivered data: an ApsaraMQ for Kafka instance, a MaxCompute instance, or another Prometheus instance. For setup instructions, see ApsaraMQ for Kafka overview or Import monitoring data from a Prometheus instance to MaxCompute
Data delivery depends on EventBridge, which became commercially available on June 3, 2025. For billing details, see EventBridge billing overview.
Create a delivery task
Log on to the ARMS console.
In the left navigation pane, choose Managed Service for Prometheus > Data Delivery.
In the top navigation bar, select a region, and then click Create Task.
In the dialog box, set Task Name and Task Description, and then click OK.
On the Edit Task page, configure the data source and event target:
Click + Add Data Source, configure the following parameters, and then click Determine.
Parameter
Description
Example
Prometheus Instance
The Prometheus instance whose data you want to deliver.
c78cb8273c02*****Data Filtering
Label-based filters that select which metrics to deliver. You can switch between Blacklist Mechanism and Whitelist Mechanism modes. Use regular expressions and separate multiple conditions with line breaks. All conditions are evaluated with a logical AND -- data is delivered only when every condition is met.
__name__=AliyunEcs_CPUUtilization|AliyunEcs_memory_usedutilizationregionId=cn-hangzhouid=i-2ze0mxp.*Data Labeling
Custom labels added to delivered metric data. Separate multiple labels with line breaks.
deliver_test_key1=ssssdeliver_test_key2=yyyyClick Add Target and configure the event target. Use the default settings in the Retry section unless your scenario requires otherwise.
Click OK, and then click Save.
After saving, the task automatically starts in the Running state. Data arrives at the target with a delay of 2 to 5 minutes.
Data format
Managed Service for Prometheus converts metric data to JSON before delivery for compatibility with other Alibaba Cloud services.
Prometheus format (source):
http_requests_total{method="POST", handler="/api/tracks"} 1027 1609459200000JSON format (delivered):
{
"__name__": "http_requests_total",
"method": "POST",
"handler": "/api/tracks",
"value": 1027,
"timestamp": 1609459200000
}Each metric label becomes a JSON field. The value and timestamp fields are extracted from the Prometheus data point.
Limitations
Real-time data only. Only data generated after you create a delivery task can be exported. Historical data delivery is not supported.
Supported instance types. Not all Prometheus instance types support data delivery.
Instance type
Supported
Prometheus for Alibaba Cloud services
Yes, except for free instances with names starting with
cloud-product-prometheusPrometheus for container services
Yes
Prometheus for Flink Serverless
Yes
Prometheus for Kubernetes
Yes
General-purpose Prometheus instance
Yes, except for instances whose data is reported through OpenTelemetry endpoints
Cross-VPC delivery. If the Prometheus instance and the target reside in different virtual private clouds (VPCs), add the vSwitch CIDR block of the target VPC to the Prometheus instance whitelist. Otherwise, data delivery may fail due to network connectivity issues. To find the vSwitch CIDR block, go to the vSwitch page in the VPC console.