All Products
Search
Document Center

:Create a Prometheus instance to monitor Alibaba Cloud services

Last Updated:Nov 21, 2023

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

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.

Connect cloud services

  1. Log on to the Prometheus console.
  2. 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.
  3. 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

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 Integrate Alibaba Cloud services. Cloud service collection list page
Note If you change the cloud services that are connected to Managed Service for Prometheus, the system automatically updates the preset dashboards and alert configurations.

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.

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