Huawei Cloud NAT Gateway
Collect Huawei Cloud NAT Gateway monitoring metrics
Configuration¶
Install Func¶
It is recommended to activate Guance Integration - Extensions - Hosted Func: All prerequisites are automatically installed. Please proceed with script installation.
If deploying Func manually, refer to Deploy Func Manually
Install Script¶
Tip: Please prepare a Huawei Cloud AK that meets requirements in advance (for simplicity, you can directly grant global read-only permission
ReadOnlyAccess
)
-
Log in to the Func console, click 【Script Market】, enter the official script market, and search for
guance_huaweicloud_nat
-
Click 【Install】 and enter the required parameters: Huawei Cloud AK, SK, and account name
-
Click 【Deploy and Start Script】. The system will automatically create the
Startup
script set and configure the corresponding startup scripts -
After activation, you can view the corresponding auto-trigger configuration under «Management / Auto Trigger Configuration». Click 【Execute】 to run it immediately without waiting for scheduled time. Wait a moment, then check execution task records and corresponding logs
Verification¶
- In «Management / Auto Trigger Configuration», confirm whether the corresponding tasks have auto-trigger configurations, and check task records and logs for any anomalies
- In Guance, view asset information under «Infrastructure - Resource Catalog»
- In Guance, check «Metrics» for corresponding monitoring data
Metrics¶
Collect Huawei Cloud NAT Gateway metrics. More metrics can be collected by configuring as needed Huawei Cloud NAT Gateway Metric Details
Huawei Cloud NAT Gateway metrics are under the huaweicloud_SYS.NAT
set. Below are descriptions of NAT Gateway-related metrics
Metric ID | Metric Name | Description | Value Range | Unit | Monitoring Period (Raw Metrics) |
---|---|---|---|---|---|
snat_connection |
SNAT Connections | This metric counts the number of SNAT connections on the measured object. | ≥ 0 | Count | 1 minute |
inbound_bandwidth |
Inbound Bandwidth | This metric measures bandwidth from the public network to the current public NAT gateway instance. | ≥ 0 | bit/s | 1 minute |
outbound_bandwidth |
Outbound Bandwidth | This metric measures bandwidth from the virtual private cloud to the current public NAT gateway instance. | ≥ 0 | bit/s | 1 minute |
inbound_pps |
Inbound PPS | This metric counts packets per second (PPS) from the public network to the current public NAT gateway instance. | ≥ 0 | Count | 1 minute |
outbound_pps |
Outbound PPS | This metric counts packets per second (PPS) from the virtual private cloud to the current public NAT gateway instance. | ≥ 0 | Count | 1 minute |
inbound_traffic |
Inbound Traffic | This metric measures traffic from the public network to the current public NAT gateway instance. | ≥ 0 | Bytes | 1 minute |
outbound_traffic |
Outbound Traffic | This metric measures traffic from the virtual private cloud to the current public NAT gateway instance. | ≥ 0 | Bytes | 1 minute |
snat_connection_ratio |
SNAT Connection Usage Rate | This metric shows the usage rate of SNAT connections on the measured object. Maximum connection count is limited by specification. See Product Specifications for details. | ≥ 0 | % | 1 minute |
inbound_bandwidth_ratio |
Inbound Bandwidth Usage Rate | This metric shows bandwidth usage rate from the public network to the current public NAT gateway instance. | ≥ 0 | % | 1 minute |
outbound_bandwidth_ratio |
Outbound Bandwidth Usage Rate | This metric shows bandwidth usage rate from the virtual private cloud to the current public NAT gateway instance. | ≥ 0 | % | 1 minute |
total_inbound_udp_bandwidth |
Total Inbound UDP Bandwidth | This metric measures total UDP bandwidth from the public network to the current public NAT gateway instance. | ≥ 0 | bit/s | 1 minute |
total_outbound_udp_bandwidth |
Total Outbound UDP Bandwidth | This metric measures total UDP bandwidth from the virtual private cloud to the current public NAT gateway instance. | ≥ 0 | bit/s | 1 minute |
total_inbound_tcp_bandwidth |
Total Inbound TCP Bandwidth | This metric measures total TCP bandwidth from the public network to the current public NAT gateway instance. | ≥ 0 | bit/s | 1 minute |
total_outbound_tcp_bandwidth |
Total Outbound TCP Bandwidth | This metric measures total TCP bandwidth from the virtual private cloud to the current public NAT gateway instance. | ≥ 0 | bit/s | 1 minute |
packets_drop_count_snat_connection_beyond |
Dropped Packets (SNAT Connection Limit Exceeded) | This metric counts dropped packets due to exceeded SNAT connection limit on the current public NAT gateway instance. | ≥ 0 | Count | 1 minute |
packets_drop_count_pps_beyond |
Dropped Packets (PPS Limit Exceeded) | This metric counts dropped packets due to exceeded PPS limit on the current public NAT gateway instance. | ≥ 0 | Count | 1 minute |
packets_drop_count_eip_port_alloc_beyond |
Dropped Packets (EIP Port Allocation Limit Exceeded) | This metric counts dropped packets due to exceeded EIP port allocation limit on the current public NAT gateway instance. | ≥ 0 | Count | 1 minute |
Objects¶
After successful data synchronization, you can view the data in «Infrastructure - Resource Catalog» under Guance.
{
"measurement": "huaweicloud_nat",
"tags": {
"RegionId" : "cn-south-1",
"project_id" : "756ada1aa17e4049b2a16ea41912e52d",
"enterprise_project_id" : "0824ss-xxxx-xxxx-xxxx-12334fedffg",
"tenant_id" : "xxxxxx",
"instance_id" : "01fbb835-6b7f-41e9-842c-xxxxx0bc0s49e9",
"instance_name" : "nat-xxxx",
"status" : "aviable",
},
"fields": {
"router_id" : "xxxxxxxxx",
"description" : "xxxxxxxxx",
"internal_network_id" : "xxxxxxxxx",
"admin_state_up" : "xxxxx",
"created_time" : "2024-11-11T08:15:58Z",
"spec" : "xxxxx"
}
}
Note: Fields in
tags
andfields
may change with future updates