PrivateLink is deeply integrated with CloudMonitor to provide monitoring and alerting capabilities for endpoints and EPSs (EPS). By collecting and analyzing key metrics, such as bandwidth and packet rate, you can promptly detect and resolve issues such as network congestion and packet loss to ensure service stability and reliability.
Monitoring overview
PrivateLink monitoring is available for both service consumers and service providers. The hierarchy of monitored objects is shown in the following figure:
Monitored objects
Endpoint: Created and managed by the service consumer.
An endpoint zone has only one elastic network interface (ENI). The endpoint zone and its ENI have a one-to-one correspondence.
Endpoint instance: The sum of metrics of all its endpoint zones.
Endpoint zone: The sum of metrics of all its ENI.
Endpoint ENI: The metrics of a specific ENI within a zone.
EPS: Created and managed by the service provider.
EPS instance: The sum of metrics for all its associated endpoint connections.
Service resource: Metrics for a specific backend resource of EPS.
Connected endpoint instance: Metrics for a connected endpoint, including all its zone and ENI details.
Endpoints are created and managed by the service consumer. Service providers can view the metrics of a specific endpoint only through the associated EPS.
Monitoring metrics
Each monitored object has metrics that fall into two categories: bandwidth and packet rate. These categories include eight key metrics to help you assess network quality.
Endpoint monitoring metrics
EPS monitoring metrics
View instance monitoring
Based on your role as a service consumer or provider, you can quickly view instance monitoring charts in the PrivateLink console or the CloudMonitor console.
By default, the system displays data from the last hour. You can select a longer time range from the list.
Service consumer: View endpoint monitoring
Go to the Endpoints page. In the top menu bar, select the region where the instance is located. In the Monitor column for the desired endpoint instance, click the
icon, or click the instance ID and then click the Monitor tab.Go to the CloudMonitor console - Endpoint page. Select the region where the instance is located. Click the desired endpoint instance ID or Monitoring Chart in the Actions column.
Service provider: View EPS monitoring
Go to the Endpoint Service console. In the top menu bar, select the region where the instance is located. In the Monitor column for the desired EPS, click the
icon, or click the instance ID and then click the Monitor tab.Go to the CloudMonitor console - Endpoint services page. Select the region where the instance is located. Click the target EPS ID or Monitoring Chart in the Actions column.
Alert subscription
Create threshold alerts for key PrivateLink metrics or subscribe to system events to automatically monitor instance status.
Set metric threshold alerts
To monitor the usage of PrivateLink resources, for example, to check whether bandwidth limits are exceeded, you can create an alert rule. If a resource's monitoring metrics meet the alert conditions, CloudMonitor automatically sends an alert notification. This helps you promptly identify and address abnormal monitoring data.
Go to the CloudMonitor console - Alert Rules page. Click Create Alert Rule.
Set Product to PrivateLink-Endpoint or PrivateLink-EPSs. Configure thresholds for each alert level of the monitoring metrics. For more information, see Add a rule.
When a metric reaches its threshold, the Alert Contact Group receives an alert notification. You can also view the alert timeline by clicking Alert History in the Actions column for the alert rule.
After creating the rule, you can Modify, Disable, or Delete the rule in the Actions column for the alert rule.
Subscribe to system events
PrivateLink generates a system event when the status of an endpoint connection changes, such as when it is accepted or rejected. You can create a subscription policy to receive notifications about these changes.
Go to the CloudMonitor console - Event Subscription page. Click Create Subscription Policy.
Set Subscription Type to System Events. Set Products to PrivateLink. Select the desired events.
Customize the alert notifications:
Noise reduction: Consolidate alerts based on the subscription scope and use conditional noise reduction to filter alerts. This helps prevent alert storms caused by many duplicate alerts.
Alert escalation: CloudMonitor sends notifications to the specified alert contact. If an alert is not resolved within a specified time, CloudMonitor automatically sends the notification to the next alert contact group.
Custom notification methods: You can define the level and template for notification channels. You can also push all alert data to services such as Simple Message Queue (formerly MNS), Simple Log Service (SLS), and Function Compute (FC), or to a webhook.
After creating the policy, you can Edit, Disable, or Delete the policy in the Actions column for the policy.
System events
Parameter | Description | Example |
product | The Alibaba Cloud service to which the system event belongs. |
|
resourceId | The affected resource. Starts with |
|
level | The level of the system event.
|
|
instanceName | The name of the affected instance. |
|
regionId | The region where the affected instance is located. |
|
name | The name of the system event. |
|
content | The content of the system event. |
|
status | The status of the system event: Executed. |
|