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 the following Alibaba Cloud services to Prometheus Service: 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), PolarDB, Logstash, and E-MapReduce (EMR).

Prerequisites

Background information

CloudMonitor is a service that monitors Internet applications and Alibaba Cloud resources. For more information, see CloudMonitor.

After Prometheus Service is integrated with CloudMonitor, you are not charged additional fees for using CloudMonitor. You are charged for monitoring data based on the billing rules of Prometheus Service. For more information about the billing rules of Prometheus Service, see Billing of Alibaba Cloud Prometheus Service.

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.
    The Monitor Cloud Services panel displays all Alibaba Cloud services that you can connect to Prometheus Service in the current region. Connect Alibaba Cloud services

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 is automatically selected in the upper-right corner of the Cloud Services tab. The collected metrics of cloud services are associated with the tags that you configure. If you do not want the metrics to be associated 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 connected cloud services. 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 a region.
  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 a region. Then, find the Prometheus instance that you want to remove and click Uninstall in the Actions column.
  4. In the Confirmation 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.