All Products
Search
Document Center

Virtual Private Cloud:Monitoring and O&M for VPC peering connections

Last Updated:Dec 29, 2023

You can view the monitoring metrics of a Virtual Private Cloud (VPC) peering connection in the VPC console. You can also monitor a VPC peering connection by using CloudMonitor. CloudMonitor can collect monitoring metrics of VPC peering connections and generate visualized time series charts in the VPC console. You can troubleshoot issues based on the monitoring metrics.

Prerequisites

Before you view the monitoring metrics of a VPC peering connection, make sure that a VPC peering connection is created. For more information, see Create a VPC peering connection.

Limits

If the requester VPC and acceptor VPC of a VPC peering connection belong to the same region, you cannot view the monitoring metrics.

View the monitoring metrics of a VPC peering connection

  1. Log on to the VPC console.
  2. In the left-side navigation pane, click VPC Peering Connection.
  3. On the VPC Peering Connection page, find the VPC and click icon in the Monitor column.

    You can select 1 hour, 3 hours, 6 hours, or 12 hours, or specify a custom time period. The following table describes the monitoring metrics.

    Metric

    Description

    Inbound Traffic in a Cycle

    The amount of data transferred from the requester to the acceptor within a statistical period. Unit: bytes.

    Outbound Traffic in a Cycle

    The amount of data transferred from the acceptor to the requester within a statistical period. Unit: bytes.

    Inbound Bandwidth

    The bandwidth used by the requester to transfer data to the acceptor. Unit: bit/s.

    Outbound Bandwidth

    The bandwidth used by the acceptor to transfer data to the requester. Unit: bit/s.

    Outbound Packets Dropped Due to Throttling

    The rate at which packets are dropped from the acceptor due to bandwidth throttling. Unit: pps.

Create an alert rule

You can create alert rules to monitor the usage and status of VPC peering connections in real time. This ensures the stability of your workloads.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Alerts > Alert Rules.

  3. On the Alert Rules page, click Create Alert Rule.

  4. In the Create Alert Rule panel, set the parameters and click OK.

    This topic describes only the key parameters. For more information about the other parameters, see Create an alert rule.

    Parameter

    Description

    Product

    Select the service that you want to monitor by using CloudMonitor. In this example, VPC Peering Connections is selected.

    Resource Range

    Specify the resources to which the alert rule is applied. Valid values:

    • All Resources: The alert rule applies to all resources of the specified cloud service.

    • Application Group: The alert rule applies to all resources in the specified application group of the specified cloud service.

    • Instances: The alert rule applies to the specified resources of the specified cloud service.

    All Resources is selected in this example.

    Rule Name

    Enter a name for the alert rule.

    Rule Description

    Enter the content of the alert rule. If a metric meets the specified condition, the alert rule is triggered. To add a condition, perform the following steps:

    1. Click Add Rule.

    2. In the Config Rule Description panel, specify the rule name, metric type, metrics, thresholds, alert level, and notification methods.

    3. Click OK.

    Mute For

    The period during which an alert is muted. This parameter specifies the interval at which an alert notification is sent to the specified contacts if the alert is not cleared.

    Effective Period

    The period during which the alert rule is effective. CloudMonitor monitors the specified resources and generates alerts only during this period.

    Alert Contact Group

    Select the alert contact groups to which alert notifications are sent.

    Tag

    Add tags to the alert rule. A tag consists of a key and a value.

    Advanced Settings

    Click Advanced Settings.

    Alert Callback

    The callback URL that can be accessed over the Internet. CloudMonitor sends a POST request to push an alert to the callback URL that you specified. Only HTTP requests are supported.

    Method to handle alerts when no monitoring data is found

    Specify the method that is used to handle alerts if no monitoring data exists. Valid values:

    • Do not do anything (default)

    • Send alert notifications

    • Treated as normal

    After a threshold-triggered alert rule is created, CloudMonitor continuously monitors IoT Platform resources based on the rule. If an alert rule is triggered, CloudMonitor sends alert notifications based on the specified notification method.

References

Related API operations