All Products
Search
Document Center

Server Load Balancer:GWLB monitoring metrics

Last Updated:Nov 06, 2024

You can check Gateway Load Balancer (GWLB) monitoring metrics for the real-time usage and status of GWLB instances as well as potential risks, then promptly troubleshoot unhealthy instances and make sure that the GWLB service is running as expected.

Background information

To call the CloudMonitor API, you need to set the Namespace, Period, MetricName, and Dimensions parameters for your GWLB instance.

  • Set Namespace to acs_gwlb.

  • Period defaults to 60 (in seconds) and you can also set it to a multiple of 60.

  • Set Dimensions to a JSON string. Set the instanceId field in Dimensions to the ID of your GWLB instance. Example: [{"instanceId":"gwlb-0jl04f66daa388ec****"}].

GWLB monitoring metrics

In the Dimensions column of the following table, some fields are described as follows:

  • addressIpVersion indicates the IP version that the GWLB instance supports.

    • For IPv4 instances, the field should be set to ipv4, and Dimensions should be set to the following: [{"addressIpVersion":"ipv4"}].

    • For dual-stack instances, the field can be set to ipv4, ipv6, or dualstack. For example, if the field is set to dualstack, Dimensions should be set to the following: [{"addressIpVersion":"dualstack"}]. If the field is set to dualstack, the values of monitoring metrics indicates the sum of the IPv4 and IPv6 metric values of the GWLB instance.

  • availableZone indicates the zone ID of the GWLB instance.

    • To query the monitoring metrics of an GWLB instance in one of its zones, set Dimensions to a value similar to the following: [{"availableZone":"cn-wulanchabu-a"}].

    • To query the monitoring metrics of an GWLB instance in all its zones, set Dimensions to the following: [{"availableZone":"all"}].

Monitoring metrics

Metric

Unit

MetricName

Dimensions

Statistics

New connections per second

Count/s

NewConnection

userId, regionId, instanceId, availableZone, and addressIpVersion

Value

Active connections

Count

ActiveConnection

userId, regionId, instanceId, availableZone, and addressIpVersion

Value

Inbound packet rate

Count/s

PacketRX

userId, regionId, instanceId, availableZone, and addressIpVersion

Value

Outbound packet rate

Count/s

PacketTX

userId, regionId, instanceId, availableZone, and addressIpVersion

Value

Inbound bandwidth rate

bit/s

TrafficRX

userId, regionId, instanceId, availableZone, and addressIpVersion

Value

Outbound bandwidth rate

bit/s

TrafficTX

userId, regionId, instanceId, availableZone, and addressIpVersion

Value

Unhealthy servers in a server group

Count

ServerGroupUnhealthyHostCount

userId, regionId, instanceId, availableZone, listenerId, and serverGroupId

Value

Healthy servers in a server group

Count

ServerGroupHealthyHostCount

userId, regionId, instanceId, availableZone, listenerId, and serverGroupId

Value

References

For information about viewing GWLB monitoring data, see View GWLB monitoring data.