All Products
Search
Document Center

Application Real-Time Monitoring Service: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 the following Alibaba Cloud services to Managed Service for Prometheus: Elastic Compute Service (ECS), ApsaraDB for MongoDB, ApsaraDB for Redis, Object Storage Service (OSS), ApsaraDB RDS, NAT Gateway, Server Load Balancer (SLB), ApsaraMQ for RocketMQ, ApsaraMQ for Kafka, Elastic IP Address (EIP), Elasticsearch, 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.

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. In the panel that appears, connect the cloud service as prompted.

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 Service > Prometheus Instances.
  3. In the top navigation bar, select a region. On the Prometheus Monitoring page, click Create a New Prometheus instance.

  4. On the Create a New Prometheus instance page, click Prometheus instance for cloud services.

    In the Access to cloud services panel, all Prometheus instances for cloud services that are created are displayed.

Create a Prometheus instance for cloud services

This section describes how to connect cloud services to Managed Service for Prometheus by creating a Prometheus instance for cloud services on the Prometheus Monitoring page.

In the Access to cloud services panel, click New Instance and configure the following parameters.

Parameter

Description

Instance name

The name of the Prometheus instance.

Storage Duration

The storage duration of metric data. Default value: 30 days.

Note

You can adjust the storage duration based on your business requirements. For more information, see What to do next.

Select data source

Select the source of metric data. Valid values: Enterprise Cloud Monitoring and Cloud service self-monitoring.

Important

You can select only one data source for a Prometheus instance.

Instance area

If you set the Select data source parameter to Cloud service self-monitoring, you must also select the region where the Prometheus instance is created.

Note

The region of the Prometheus instance must be the same as that of the cloud services that you want to connect.

After you configure the settings, select the cloud services that you want to connect (icon 1) and click confirm (icon 2). Then, the Integration Center page appears. In the Integrated section, you can view the cloud services that are connected to Managed Service for Prometheus. The Prometheus instance is created.

Note
  • You can connect multiple cloud services at a time.

  • On the Integration Center page, you can connect more cloud services based on your business requirements. For more information, see Integrate Alibaba Cloud services.

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 ARMS console.
  2. In the left-side navigation pane, choose Prometheus Service > Prometheus Instances.
  3. In the top navigation bar, 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 the monitored cloud services.

Disable monitoring for cloud services

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Service > 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 message that appears, click OK.

    After the Prometheus instance is removed, the Prometheus Monitoring page no longer displays the Prometheus instance. The metric data of the Prometheus instance is also cleared.

    Note

    You can also remove a Prometheus instance in the Access to cloud services panel. For more information, see What to do next.

What to do next

In the Access to cloud services panel, you can perform the following operations.

  • Click a Prometheus instance name or Increase in the Contains monitoring data column. The Integration Center page appears.

    Note

    On the Integration Center page, you can connect more cloud services based on your business requirements. For more information, see Integrate Alibaba Cloud services.

  • Click Edit in the Actions column to modify the name and metric storage duration of a Prometheus instance.

  • Click Unload in the Actions column to remove a Prometheus instance.

    Note

    You can also perform the steps in the Disable monitoring for cloud services section to remove a Prometheus instance. After you remove a Prometheus instance, the Prometheus Monitoring page no longer displays the Prometheus instance. The metric data of the Prometheus instance is also cleared.