Skip to content

Huawei Cloud AS

The core performance metrics of Huawei Cloud AS (Auto Scaling) include CPU utilization, memory usage, disk I/O, network throughput, and system load. These are key indicators for evaluating and optimizing the performance of the auto-scaling system.

Configuration

Install Func

It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed. Please proceed with the script installation.

For self-deploying Func, refer to Self-deploying Func

Install Script

Note: Please prepare the Huawei Cloud AK that meets the requirements 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_as.

  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 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute it once without waiting for the scheduled time. After a 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. You can also check the task records and logs for any exceptions.
  2. In TrueWatch, check if asset information exists in 「Infrastructure / Custom」.
  3. In TrueWatch, check if there is corresponding monitoring data in 「Metrics」.

Metrics

After configuring HUAWEI SYS.AS, the default Measurement is as follows. You can collect more metrics through configuration. Huawei Cloud Monitoring Metrics Details

Metric Name Description Unit Dimension
cpu_util This metric is used to count the CPU utilization of the auto-scaling group % AutoScalingGroup
instance_num This metric is used to count the number of available cloud servers in the auto-scaling group count AutoScalingGroup
disk_read_bytes_rate This metric is used to count the amount of data read from the auto-scaling group per second Byte/s AutoScalingGroup
disk_write_bytes_rate This metric is used to count the amount of data written to the auto-scaling group per second Byte/s AutoScalingGroup
mem_usedPercent This metric is used to count the memory usage of the auto-scaling group (Agent) % AutoScalingGroup
cpu_usage This metric is used to count the CPU usage of the auto-scaling group (Agent) % AutoScalingGroup

Object

The collected HUAWEI SYS.AS object data structure can be seen in 「Infrastructure - Custom」.

{
  "measurement": "huaweicloud_as",
  "tags": {
    "name"                       : "c4dec56f-96b0-40f4-b47d-ab0cdc47e908",
    "scaling_configuration_id"   : "c4dec56f-96b0-40f4-b47d-ab0cdc47e908",
    "scaling_configuration_name" : "as-config-cdec",
    "scaling_group_id"           : "da854ab8-bd88-4757-a35a-135c7c3d526d"
  },
  "fields": {
    "created_time"    : "2022-06-21T06:17:27+0000",
    "instance_config" : "{Instance Configuration Information}",
    "message"         : "{Instance JSON Data}"
  }
}

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

Tip 1: The value of tags.name is the instance ID, used as a unique identifier.

Tip 2: fields.message, fields.billing, fields.bind_rules, fields.message, fields.resources are all JSON serialized strings.