Skip to content

Huawei Cloud NAT Gateway

Collect Huawei Cloud NAT Gateway monitoring metrics

Configuration

Install Func

It is recommended to enable Guance Integration - Extensions - DataFlux Func (Automata): all prerequisites are automatically installed, please proceed with script installation

If you need to deploy Func manually, refer to Manual Func Deployment

Install Script

Note: Please prepare Huawei Cloud AK with appropriate permissions in advance (for simplicity, you can grant the global read-only permission Tenant Guest)

Enable Script for DataFlux Func (Automata)

  1. Log in to the Guance console
  2. Click the "Integration" menu, select "Cloud Account Management"
  3. Click "Add Cloud Account", select "Huawei Cloud", and fill in the required information. If you have already configured the cloud account information, skip this step
  4. Click "Test", and if the test is successful, click "Save". If the test fails, please check the relevant configuration information and retest
  5. In the "Cloud Account Management" list, you can see the added cloud account. Click the corresponding cloud account to enter the details page
  6. Click the "Integration" button on the cloud account details page. In the "Not Installed" list, find "Huawei Cloud NAT Gateway", and click the "Install" button. The installation interface will pop up for installation.

Enable Script Manually

  1. Log in to the Func console, click "Script Market", enter the Guance script market, and search for integration_huaweicloud_nat

  2. Click "Install", then enter the corresponding parameters: Huawei Cloud AK, SK, and account name

  3. Click "Deploy Startup Script", the system will automatically create the Startup script set and configure the corresponding startup scripts

  4. After enabling, you can see the corresponding automatic trigger configuration in "Management / Automatic Trigger Configuration". Click "Execute" to immediately execute it once without waiting for the scheduled time. Wait for a moment, and you can view the execution task records and corresponding logs

Verification

  1. In "Management / Automatic Trigger Configuration", confirm whether the corresponding task has the automatic trigger configuration. You can also check the corresponding task records and logs to see if there are any exceptions
  2. In Guance, check if there is asset information in "Infrastructure - Resource Catalog"
  3. In Guance, check if there is corresponding monitoring data in "Metrics"

Metrics

Collect Huawei Cloud NAT Gateway metrics. You can collect more metrics through configuration Huawei Cloud NAT Gateway Metrics Details

Huawei Cloud NAT Gateway metrics are under the huaweicloud_SYS.NAT measurement. Below are the descriptions of NAT Gateway related metrics

Metric ID Metric Name Metric Meaning Value Range Unit Monitoring Period (Original Metric)
snat_connection SNAT Connection Count This metric is used to count the SNAT connection count of the measured object. ≥ 0 Count 1 minute
inbound_bandwidth Inbound Bandwidth This metric is used to count the bandwidth from the public network to the current public NAT Gateway instance. ≥ 0 bit/s 1 minute
outbound_bandwidth Outbound Bandwidth This metric is used to count the bandwidth from the virtual private cloud to the current public NAT Gateway instance. ≥ 0 bit/s 1 minute
inbound_pps Inbound PPS This metric is used to count the PPS from the public network to the current public NAT Gateway instance. ≥ 0 Count 1 minute
outbound_pps Outbound PPS This metric is used to count the PPS from the virtual private cloud to the current public NAT Gateway instance. ≥ 0 Count 1 minute
inbound_traffic Inbound Traffic This metric is used to count the traffic from the public network to the current public NAT Gateway instance. ≥ 0 Bytes 1 minute
outbound_traffic Outbound Traffic This metric is used to count the traffic from the virtual private cloud to the current public NAT Gateway instance. ≥ 0 Bytes 1 minute
snat_connection_ratio SNAT Connection Usage Ratio This metric is used to count the SNAT connection usage ratio of the measured object. The maximum connection count is limited by the specification. For details, see Product Specifications ≥ 0 % 1 minute
inbound_bandwidth_ratio Inbound Bandwidth Usage Ratio This metric is used to count the bandwidth usage ratio from the public network to the current public NAT Gateway instance. ≥ 0 % 1 minute
outbound_bandwidth_ratio Outbound Bandwidth Usage Ratio This metric is used to count the bandwidth usage ratio 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 is used to count the 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 is used to count the 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 is used to count the 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 is used to count the 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 Packet Drop Count (SNAT Connection Limit Exceeded) This metric is used to count the packet drop count caused by exceeding the SNAT connection limit of the current public NAT Gateway instance. ≥ 0 Count 1 minute
packets_drop_count_pps_beyond Packet Drop Count (PPS Limit Exceeded) This metric is used to count the packet drop count caused by exceeding the PPS limit of the current public NAT Gateway instance. ≥ 0 Count 1 minute
packets_drop_count_eip_port_alloc_beyond Packet Drop Count (EIP Port Allocation Limit Exceeded) This metric is used to count the packet drop count caused by exceeding the EIP port allocation limit of the current public NAT Gateway instance. ≥ 0 Count 1 minute

Objects

After data is synchronized normally, you can view the data in Guance's "Infrastructure - Resource Catalog".

{
  "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: The fields in tags and fields may change with subsequent updates

Feedback

Is this page helpful? ×