Managed Service for Prometheus can provide monitoring data of Classic Load Balancer (CLB) instances, including metrics, alerts, and dashboards. This topic describes how to integrate CLB with Managed Service for Prometheus.
Overview
Managed Service for Prometheus is a fully managed monitoring service that is interfaced with the open source Prometheus ecosystem. Managed Service for Prometheus monitors various components and provides multiple ready-to-use dashboards. For more information, see What is Managed Service for Prometheus?
You can use Hybrid Cloud Monitoring to integrate CLB with Managed Service for Prometheus. You are charged for using Hybrid Cloud Monitoring, as described in the following table.
Integration type | Description | Billing | Storage fee |
Hybrid Cloud Monitoring (charged) | Managed Service for Prometheus calls the CloudMonitor API to collect CLB metrics. If CLB is integrated with Managed Service for Prometheus and alert rules are created, Managed Service for Prometheus displays the monitoring data and alerts on dashboards. | The data transfer fee generated by metric collection is billed by CloudMonitor. For more information, see Billing of the cloud monitoring exporter feature. | Managed Service for Prometheus stores collected metrics free of charge. |
Prerequisites
Application Real-Time Monitoring Service (ARMS) is activated. For more information, see Activate ARMS.
Managed Service for Prometheus is activated. For more information, see Activate Managed Service for Prometheus Pro Edition.
Create a Prometheus instance
Log on to the Managed Service for Prometheus console.
In the top navigation bar, select a region. On the Instances page, click Create Prometheus Instance.
On the Create Instance page, configure the parameters and click Create Now. The following table describes the parameters.
Parameter
Description
Instance Type
Select General-purpose Instance or Global Aggregation Instance.
NoteGeneral-purpose instance: A general-purpose Prometheus instance is used for the remote storage of self-managed Prometheus clusters, or to monitor metric data about containers, cloud services, and hosts.
Global aggregation instance: A global aggregation instance is used to aggregate multiple Prometheus instances or self-managed Prometheus clusters, query Prometheus metrics, and manage Grafana data sources and alerts in a unified manner.
Storage Duration
Select 90 Days or 180 Days.
Integrate CLB with Managed Service for Prometheus
Log on to the ARMS console.
In the left-side navigation pane, choose Integration Center.
On the Integration Center page, click Middleware and click Alibaba Cloud SLB.
In the Alibaba Cloud SLB panel, select the region where your CLB instance is deployed and click OK. Wait for one to two minutes. Then, the CLB data is integrated.
Metric
You can view CLB monitoring metrics on the Collect Metrics tab.
Alerts
On the Alert Rule Template tab, you can create Prometheus alert rules and view alert information. For more information, see Create an alert rule for a Prometheus instance.
Dashboard
On the Start Integration tab, click Integration Management. On the page that appears, on the Component Management tab, click Dashboards and click SLB. You can view the CLB monitoring data.
Use a third-party Prometheus library
After CLB is integrated with Managed Service for Prometheus, you can use the remote write feature to load a third-party Prometheus library. For more information, see Create a Prometheus instance for remote write.
Disable monitoring on CLB
Log on to the Managed Service for Prometheus console.
On the Instances page, in the top navigation bar, select the region where your Prometheus instance is deployed, find the Prometheus instance that you want to manage, and click Uninstall in the Actions column.
In the message that appears, click OK.