This topic describes how to create a Prometheus instance to monitor Alibaba Cloud services. After you create a Prometheus instance and connect cloud services to Managed Service for Prometheus, you can use the built-in dashboards and alert rules to monitor cloud services and manage alerts. You can connect 26 types of Alibaba Cloud services to Managed Service for Prometheus, such as Elastic Compute Service (ECS), ApsaraDB for MongoDB, ApsaraDB for Redis, Object Storage Service (OSS), ApsaraDB RDS, NAT Gateway, Server Load Balancer (SLB), Message Queue for Apache RocketMQ, Message Queue for Apache Kafka, Elastic IP Address (EIP), Elasticsearch, Distributed Relational Database Service (DRDS), and PolarDB.
Prerequisites
- Application Real-Time Monitoring Service (ARMS) is activated. For more information.
- Managed Service for Prometheusis activated. For more information, see Activate Managed Service for Prometheus Pro Edition.
Background information
CloudMonitor is a service that monitors Internet applications and Alibaba Cloud resources. For more information, visit the product page of CloudMonitor.
After Managed Service for Prometheus is integrated with CloudMonitor, you are not charged additional fees for using CloudMonitor or the collected monitoring data.
Method 1: Connect cloud services on the Integration Center page
- Log on to the ARMS console.
- In the left-side navigation pane, click Integration Center.
- In the Cloud Services section, click a cloud service.
Method 2: Connect cloud services on the Prometheus Monitoring page
- Log on to the ARMS console.
- In the left-side navigation pane, choose .
- In the top navigation bar of the Prometheus Monitoring page, select a region. Then, click Create Prometheus Instance in the upper-right corner of the page.
- On the Create Prometheus Instance page, click Prometheus Instance for Cloud Services. In the Monitor Cloud Services panel, all Alibaba Cloud services that you can connect to Managed Service for Prometheus in the current region are displayed.
Create a Prometheus instance for cloud services

The system automatically creates a Prometheus instance on the Prometheus Monitoring page. Prometheus for Cloud Services is displayed in the Instance Type column of the Prometheus instance.

- When you create a Prometheus instance for cloud services, the Collect Cloud Service Tag Metrics check box in the upper-right corner of the Cloud Services tab is automatically selected. The collected metrics of cloud services are associated with the tags that you configure. If you do not want to associate metrics with tags, you can clear the check box.
- You can create only one Prometheus instance for cloud services. Only one Prometheus instance for cloud services is displayed on the Prometheus Monitoring page.

View metrics on Grafana dashboards
After you connect Alibaba Cloud services to Managed Service for Prometheus, you can view the performance metrics of cloud services on preset Grafana dashboards.
- Log on to the ARMS console.
- In the left-side navigation pane, choose .
- In the top navigation bar of the Prometheus Monitoring page, select the region where the Prometheus instance resides.
- Click the name of the Prometheus instance for cloud services. On the Dashboards page, click the name of a dashboard to view the performance metrics of a cloud service.
Disable monitoring for cloud services
- Log on to the ARMS console.
- In the left-side navigation pane, choose .
- In the top navigation bar of the Prometheus Monitoring page, select the region where the Prometheus instance resides. Then, find the Prometheus instance that you want to remove and click Uninstall in the Actions column.
- In the Confirm message that appears, click OK. After the Prometheus instance is removed, the Prometheus Monitoring page no longer displays the Prometheus instance. The Cloud service collection list page no longer displays information about cloud services.