Monitor a VPN Gateway instance
Use Cloud Monitor to track the traffic and health of your VPN Gateway instances. View real-time metrics on the Monitor tab, or set up threshold-triggered alert rules to get notified when traffic exceeds defined limits.
Prerequisites
Before you begin, ensure that you have:
A VPN Gateway instance deployed in your Alibaba Cloud account
Access to the VPN gateway console and the Cloud Monitor console
View monitoring data
Log on to the VPN gateway console.
In the top navigation bar, select the region where your VPN Gateway instance resides.
On the VPN Gateways page, click the ID of the target VPN Gateway instance.
On the instance details page, click the Monitor tab.
The tab displays monitoring data for the last hour by default. To view a different time range, select 3 hours, 6 hours, or 12 hours, or specify a custom range.
To keep the charts current, turn on Auto-refresh above any line chart. When enabled, the system refreshes monitoring data every minute.
Available metrics
Traffic metrics
| Metric | Description |
|---|---|
| Inbound Packet Rate of VPN Gateway | Rate at which the VPN Gateway instance receives packets. Unit: packets/s. |
| Outbound Packet Rate of VPN Gateway | Rate at which the VPN Gateway instance sends packets. Unit: packets/s. |
| Inbound Traffic Rate of VPN Gateway | Rate at which the VPN Gateway instance receives traffic. Unit: bit/s. |
| Outbound Traffic Rate of VPN Gateway | Rate at which the VPN Gateway instance sends traffic. Unit: bit/s. |
| Inbound Bandwidth Usage of VPN Gateway | Percentage of bandwidth used for inbound traffic. |
| Outbound Bandwidth Usage of VPN Gateway | Percentage of bandwidth used for outbound traffic. |
Connection metrics
| Metric | Description |
|---|---|
| Number of SSL Clients | Number of clients connected to the VPN Gateway instance through SSL-VPN. Unit: count. |
Create a threshold-triggered alert rule
A threshold-triggered alert rule monitors a metric and sends an alert notification when the value exceeds the threshold you define. This helps you respond to traffic anomalies before they affect your users.
Log on to the Cloud Monitor console.
In the left navigation pane, choose Alerts > Alert Rules.
On the Alert Rules page, click Create Alert Rule.
In the Create Alert Rule panel, set Product to vpngw, configure the remaining parameters as needed, and then click OK. For details on parameters not described in this topic, see Create an alert rule.
In the Rule Description section, click Add Rule > Simple Metric.
In the Configure Rule Description panel, configure the following parameters, and then click OK.
Parameter Description Alert Rule The name of the threshold-triggered alert rule. Metric Type The type of the metric for the threshold-triggered alert rule. In this example, Simple Metric is used. For more information about the parameter configurations for different metric types, see Create an alert template. Options: Simple Metric, Composite Metric, Expression, Dynamic Threshold. Metric The metric to monitor. Available options are grouped below by category. Chart Preview A preview of the monitoring chart for the selected metric. Gateway traffic metrics
Metric name VpnGateway.rxPkgsVpnGateway.txPkgsGateway.rxPkgsGateway.txPkgsGateway.tx.utilizationGateway.rx.utilizationnet_rx.ratenet_tx.rateConnection and client metrics
Metric name client.countIPSec.connection.bgp_stateIPSec.connection.rxPkgsIPSec.connection.stateIPSec.connection.txpkgsIPSec.connection.rx.rateIPSec.connection.tx.rateTunnel metrics
Metric name Tunnel.stateTunnel.bgp_stateTunnel.rx.bpsTunnel.rx.ppsTunnel.tx.bpsTunnel.tx.pps