You can use Managed Service for Prometheus to view monitoring data for Classic Load Balancer (CLB) through metrics, dashboards, and alerts. This topic describes how to integrate CLB with Managed Service for Prometheus.
Overview
Managed Service for Prometheus is compatible with the open source Prometheus ecosystem, supports monitoring for a variety of components, provides multiple out-of-the-box dashboards, and offers a fully managed Prometheus service. For more information, see What is Managed Service for Prometheus?.
CLB integrates with Managed Service for Prometheus through Hybrid Cloud Monitoring, which is a paid service. The following table provides details.
|
Integration type |
Description |
Metric fees |
Storage fees |
|
Hybrid Cloud Monitoring (paid) |
Managed Service for Prometheus pulls metrics by calling the CloudMonitor API. After you integrate CLB, you can use cloud service dashboards and alert rules to monitor your CLB instances and receive alerts. |
CloudMonitor charges data transfer fees for CLB metric reporting. For pricing details, see Export Real-Time Data. |
Managed Service for Prometheus stores reported metrics for free. |
Prerequisites
-
You have activated ARMS. For details, see Activate ARMS.
-
You have activated Managed Service for Prometheus. For details, see Activate Managed Service for Prometheus Pro Edition.
Create a Prometheus instance
-
Log on to the Cloud Monitor console.
-
In the top navigation bar, select a region, and then click Create Prometheus Instance.
-
On the Create Instance page, configure the following parameters and click Create Now.
Parameter
Description
Instance type
Select General-purpose Instance or Global Aggregation Instance. This topic uses a General-purpose Instance as an example.
Note-
General-purpose Instance: A general-purpose Prometheus instance that fits most use cases. You can use it as remote storage (Remote Write) for a self-managed Prometheus cluster, or to ingest metrics from containers, cloud services, hosts, and more.
-
Global Aggregation Instance: A virtual aggregation instance for multiple Alibaba Cloud Prometheus instances. It provides unified metric queries, a unified Grafana data source, and unified alerting.
Storage duration
You can select a storage duration of 15 Days, 30 Days, 60 Days, 90 Days, or 180 Days.
-
Integrate CLB with Managed Service for Prometheus
-
Log on to the ARMS console.
-
In the navigation pane on the left, click Integration Center.
-
On the Integration Center page, click the Middleware tab, and then click Alibaba Cloud SLB.
-
In the Alibaba Cloud SLB panel, select the data storage region and click OK. The integration takes about 1 to 2 minutes to complete.
-
Metrics
On the Collect Metrics tab, you can view the monitoring metrics for CLB.
-
Alerts
On the Alert Rule Template tab, you can create Prometheus alert rules and view alert information. For details on how to create an alert rule, see Create a Prometheus alert rule.
-
Dashboards
On the Start Integration tab, click Integration Management, choose Component Management > Dashboards, and then click SLB to view the performance metrics of a specific CLB instance.
Integrate a self-managed Prometheus server
You can configure your self-managed Prometheus server to send data to Managed Service for Prometheus using the remote write feature. For details, see Prometheus instance for general-purpose scenarios.
Disable CLB monitoring
-
Log on to the Cloud Monitor console.
-
On the Instances page, select the target region in the top navigation bar. In the row for the target instance, click Delete in the Actions column.
-
In the dialog box that appears, click OK.