Skip to content

Huawei Cloud ELB

Collect Huawei Cloud ELB monitoring metrics

Configuration

Install Func

It is recommended to activate the TrueWatch integration - Extensions - DataFlux Func (Automata): all prerequisites are automatically installed, please proceed with the script installation.

If you are deploying Func manually, refer to Manual Func Deployment

Install Script

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

  1. Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, and search for ID:integration_huaweicloud_elb

  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 script

  4. After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. After a short while, you can view the execution task records and corresponding logs

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions
  2. In TrueWatch, 「Infrastructure - Resource Catalog」, check if the asset information exists
  3. In TrueWatch, 「Metrics」, check if there is corresponding monitoring data

Metrics

Configure Huawei Cloud ELB metrics, you can collect more metrics by configuration Huawei Cloud ELB Metrics Details

Metric ID Metric Name Metric Description Value Range Measurement Object Monitoring Period(Original Metric)
m1_cps Concurrent Connections In a four-layer load balancer, it refers to the number of all TCP and UDP connections established from the measurement object to the backend servers. In a seven-layer load balancer, it refers to the number of all TCP connections established from the client to the ELB. Unit: count ≥ 0 counts Dedicated Load Balancer Shared Load Balancer Dedicated Load Balancer Listener Shared Load Balancer Listener 1 minute
m2_act_conn Active Connections The number of all TCP or UDP connections in the ESTABLISHED state established from the measurement object to the backend servers. Both Windows and Linux servers can use the following command to view. netstat -an Unit: count ≥ 0 counts
m3_inact_conn Inactive Connections The number of all TCP connections in states other than ESTABLISHED established from the measurement object to all backend servers. Both Windows and Linux servers can use the following command to view. netstat -an Unit: count ≥ 0 counts
m4_ncps New Connections The number of new TCP and UDP connections established per second from the client to the measurement object. Unit: count/second ≥ 0 counts/second
m5_in_pps Inbound Packets The number of packets received per second by the measurement object. Unit: count/second ≥ 0 counts/second
m6_out_pps Outbound Packets The number of packets sent per second by the measurement object. Unit: count/second ≥ 0 counts/second
m7_in_Bps Inbound Network Rate The traffic consumed when accessing the measurement object from the outside. Unit: bytes/second ≥ 0 bytes/second
m8_out_Bps Outbound Network Rate The traffic consumed when the measurement object accesses the outside. Unit: bytes/second ≥ 0 bytes/second
m9_abnormal_servers Abnormal Hosts The number of abnormal hosts in the backend of the monitoring object as counted by health checks. Unit: count ≥ 0 counts Dedicated Load Balancer Shared Load Balancer 1 minute
ma_normal_servers Normal Hosts The number of normal hosts in the backend of the monitoring object as counted by health checks. Unit: count ≥ 0 counts
m1e_server_rps Backend Server Resets TCP listener exclusive metric. The number of reset (RST) packets sent per second by the backend server to the client through the measurement object. Unit: count/second ≥ 0 counts/second Shared Load Balancer Shared Load Balancer Listener 1 minute
m21_client_rps Client Resets TCP listener exclusive metric. The number of reset (RST) packets sent per second by the client to the backend server through the measurement object. Unit: count/second ≥ 0 counts/second
m1f_lvs_rps Load Balancer Resets TCP listener exclusive metric. The number of reset (RST) packets generated per second by the measurement object. Unit: count/second ≥ 0 counts/second
m22_in_bandwidth Inbound Bandwidth The bandwidth consumed when accessing the measurement object from the outside. Unit: bits/second ≥ 0 bits/second Shared Load Balancer Shared Load Balancer Listener 1 minute
m23_out_bandwidth Outbound Bandwidth The bandwidth consumed when the measurement object accesses the outside. Unit: bits/second ≥ 0 bits/second
mb_l7_qps Layer 7 Query Rate The current Layer 7 query rate of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second Dedicated Load Balancer Shared Load Balancer Dedicated Load Balancer Listener Shared Load Balancer Listener 1 minute
md_l7_http_3xx Layer 7 Protocol Return Code (3XX) The current number of Layer 3XX series status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second Dedicated Load Balancer Shared Load Balancer Dedicated Load Balancer Listener Shared Load Balancer Listener 1 minute
mc_l7_http_2xx Layer 7 Protocol Return Code (2XX) The current number of Layer 2XX series status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second Dedicated Load Balancer Shared Load Balancer Dedicated Load Balancer Listener Shared Load Balancer Listener 1 minute
me_l7_http_4xx Layer 7 Protocol Return Code (4XX) The current number of Layer 4XX series status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
mf_l7_http_5xx Layer 7 Protocol Return Code (5XX) The current number of Layer 5XX series status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m10_l7_http_other_status Layer 7 Protocol Return Code (Others) The current number of Layer status response codes other than 2XX, 3XX, 4XX, 5XX series of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m11_l7_http_404 Layer 7 Protocol Return Code (404) The current number of Layer 404 status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m12_l7_http_499 Layer 7 Protocol Return Code (499) The current number of Layer 499 status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m13_l7_http_502 Layer 7 Protocol Return Code (502) The current number of Layer 502 status response codes of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m14_l7_rt Layer 7 Protocol RT Average The current average response time of the Layer 7 protocol of the measurement object. (Only available for HTTP and HTTPS listeners) From the time the measurement object receives the client request to the time the measurement object returns all responses to the client. Unit: milliseconds.imgNote: The average RT in websocket scenarios may be very large, in which case this metric cannot be used as a latency metric reference. ≥ 0 milliseconds
m15_l7_upstream_4xx Layer 7 Backend Return Code (4XX) The current number of Layer 4XX series status response codes of the backend of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second Dedicated Load Balancer Shared Load Balancer Dedicated Load Balancer Listener Shared Load Balancer Listener 1 minute
m16_l7_upstream_5xx Layer 7 Backend Return Code (5XX) The current number of Layer 5XX series status response codes of the backend of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m17_l7_upstream_rt Layer 7 Backend RT Average The current average response time of the backend of the Layer 7 protocol of the measurement object. (Only available for HTTP and HTTPS listeners) From the time the measurement object forwards the request to the backend server to the time the measurement object receives the response from the backend server. Unit: milliseconds.imgNote: The average RT in websocket scenarios may be very large, in which case this metric cannot be used as a latency metric reference. ≥ 0 milliseconds
m1a_l7_upstream_rt_max Layer 7 Backend RT Maximum The current maximum response time of the backend of the Layer 7 protocol of the measurement object. (Only available for HTTP and HTTPS listeners) From the time the measurement object forwards the request to the backend server to the time the measurement object receives the response from the backend server. Unit: milliseconds. ≥ 0 milliseconds Dedicated Load Balancer Shared Load Balancer Dedicated Load Balancer Listener Shared Load Balancer Listener 1 minute
m1b_l7_upstream_rt_min Layer 7 Backend RT Minimum The current minimum response time of the backend of the Layer 7 protocol of the measurement object. (Only available for HTTP and HTTPS listeners) From the time the measurement object forwards the request to the backend server to the time the measurement object receives the response from the backend server. Unit: milliseconds. ≥ 0 milliseconds
l7_con_usage Layer 7 Concurrent Connection Usage Rate The concurrent connection usage rate of the Layer 7 ELB instance. Unit: percentage. ≥ 0% Dedicated Load Balancer 1 minute
l7_in_bps_usage Layer 7 Inbound Bandwidth Usage Rate The inbound bandwidth usage rate of the Layer 7 ELB instance. Unit: percentageNote: If the inbound bandwidth usage rate reaches 100%, it means that the performance guarantee provided by the ELB specification has been exceeded. Your business can continue to use higher bandwidth, but for the part of the bandwidth that exceeds, ELB cannot guarantee service availability metrics. ≥ 0%
l7_out_bps_usage Layer 7 Outbound Bandwidth Usage Rate The outbound bandwidth usage rate of the Layer 7 ELB instance. Unit: percentageNote: If the outbound bandwidth usage rate reaches 100%, it means that the performance guarantee provided by the ELB specification has been exceeded. Your business can continue to use higher bandwidth, but for the part of the bandwidth that exceeds, ELB cannot guarantee service availability metrics. ≥ 0%
l7_ncps_usage Layer 7 New Connection Usage Rate The new connection usage rate of the Layer 7 ELB instance. Unit: percentage ≥ 0%
l7_qps_usage Layer 7 Query Rate Usage Rate The query rate usage rate of the Layer 7 ELB instance. Unit: percentage ≥ 0%
m18_l7_upstream_2xx Layer 7 Backend Return Code (2XX) The current number of Layer 2XX series status response codes of the backend of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second Dedicated Load Balancer Backend Server Group Shared Load Balancer Backend Server Group 1 minute
m19_l7_upstream_3xx Layer 7 Backend Return Code (3XX) The current number of Layer 3XX series status response codes of the backend of the measurement object. (Only available for HTTP and HTTPS listeners) Unit: count/second. ≥ 0 counts/second
m25_l7_resp_Bps Layer 7 Response Bandwidth Unit: bits/second ≥ 0 bits/second
m24_l7_req_Bps Layer 7 Request Bandwidth Unit: bits/second ≥ 0 bits/second
l4_con_usage Layer 4 Concurrent Connection Usage Rate The concurrent connection usage rate of the Layer 4 ELB instance. Unit: percentage ≥ 0% Dedicated Load Balancer 1 minute
l4_in_bps_usage Layer 4 Inbound Bandwidth Usage Rate The inbound bandwidth usage rate of the Layer 4 ELB instance. Unit: percentageNote: If the inbound bandwidth usage rate reaches 100%, it means that the performance guarantee provided by the ELB specification has been exceeded. Your business can continue to use higher bandwidth, but for the part of the bandwidth that exceeds, ELB cannot guarantee service availability metrics. ≥ 0%
l4_out_bps_usage Layer 4 Outbound Bandwidth Usage Rate The outbound bandwidth usage rate of the Layer 4 ELB instance. Unit: percentageNote: If the outbound bandwidth usage rate reaches 100%, it means that the performance guarantee provided by the ELB specification has been exceeded. Your business can continue to use higher bandwidth, but for the part of the bandwidth that exceeds, ELB cannot guarantee service availability metrics. ≥ 0%
l4_ncps_usage Layer 4 New Connection Usage Rate The new connection usage rate of the Layer 4 ELB instance. Unit: percentage ≥ 0%

Objects

The collected Huawei Cloud ELB object data structure can be viewed in 「Infrastructure - Resource Catalog」

{
  "measurement": "huaweicloud_elb",
  "tags": { 
    "RegionId"              : "cn-north-4",
    "project_id"            : "c631f046252d4ebdaxxxxxxxxxx",
    "enterprise_project_id" : "0824ss-xxxx-xxxx-xxxx-12334fedffg",
    "instance_id"           : "16b35ebaba1c44c39d9c24bae742ca97in02",
    "instance_name"         : "elb-xxxx"
  },
  "fields": {
    "vip_subnet_id"   : "674e9b42-xxxx-xxxx-xxxx-5abcc565b961",
    "vip_port_id"     : "f1df08c5-xxxx-xxxx-xxxx-de435a51007b",
    "vip_address"     : "7aa51dbfxxxxxxxxxdad3c4828b58",
    "operating_status": "ONLINE",
    "created_at"      : "2022-06-22T02:41:57",
    "listeners"       : "{Instance JSON Data}",
    "updated_at"      : "2022-06-22T02:41:57",
    "description"     : ""
  }
}

Note: The fields in tags and fields may change with subsequent updates

Note 1: tags.instance_id value is the instance ID, used as a unique identifier

Note 2:

  • fields.listeners is a JSON serialized string.
  • fields.operating_status is the operating status of the load balancer. Value range: can be ONLINE and FROZEN.