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 Prometheus Service, 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 Prometheus Service, 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

Background information

CloudMonitor is a service that monitors Internet applications and Alibaba Cloud resources. For more information, visit the product page of CloudMonitor.

After Prometheus Service 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

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, click Integration Center.
  3. In the Cloud Services section, click a cloud service.

Method 2: Connect cloud services on the Prometheus Monitoring page

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. 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.
  4. 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 Prometheus Service in the current region are displayed.

Create a Prometheus instance for cloud services

On the Cloud Services tab, select one or more Alibaba Cloud services that you want to monitor and click OK.
Connect Alibaba 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.

Prometheus instance for cloud services
Note
  • 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.
After you create a Prometheus instance for cloud services, you are redirected to the Cloud service collection list page, and the information about the connected cloud services is displayed.
You can add or remove cloud services on the Cloud service collection list page. For more information, see Manage Alibaba Cloud services for Prometheus Service. Cloud service collection list page
Note If you change the cloud services that are connected to Prometheus Service, the system automatically updates the preset dashboards and alert configurations.

View metrics on Grafana dashboards

After you connect Alibaba Cloud services to Prometheus Service, you can view the performance metrics of cloud services on preset Grafana dashboards.

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. In the top navigation bar of the Prometheus Monitoring page, select the region where the Prometheus instance resides.
  4. 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

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Monitoring > Prometheus Instances.
  3. 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.
  4. 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.