Skip to content

Configuration Manual for Collector 「Alibaba Cloud-ALB」

Before reading this, please refer to:

Before using this collector, you must install the 「Integration Core Package」 and its corresponding third-party dependency packages

1. Configuration Structure

The configuration structure of this collector is as follows:

Field Type Required Description
regions list Required List of regions for ALB data collection
regions[#] str Required Region ID. For example: 'cn-hangzhou', see the full list in the appendix

2. Configuration Example

Python
1
2
3
aliyun_alb_configs = {
    'regions': [ 'cn-hangzhou' ],
}

3. Data Reporting Format

After data synchronization is successful, you can view the data in the 「Infrastructure-Resource Catalog」 section of {{( brand_name }}}.

The reported data example is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  {
    "measurement": "aliyun_alb",
    "tags": {
      "name"                       : "alb-xxxxxx",
      "AddressType"                : "Intranet",
      "DNSName"                    : "alb-xxxxxx.internal.cn-hangzhou.alb.aliyuncs.com",
      "LoadBalancerBussinessStatus": "Normal",
      "LoadBalancerEdition"        : "Standard",
      "LoadBalancerId"             : "alb-xxxxxx",
      "LoadBalancerName"           : "dataway-xxx",
      "LoadBalancerStatus"         : "Active",
      "PayType"                    : "PostPay",
      "VpcId"                      : "vpc-xxxxxx"
    },
    "fields": {
      "CreateTime": "2021-07-27T09:15:07Z",
      "message"   : "{JSON instance data}",
    },
  }

Descriptions of some fields are provided below; for more details, refer to the appendix interface return parameters.

Field Type Description
AddressType String Address type of the load balancer
Fixed: Fixed IP mode
Dynamic: Dynamic IP mode
PayType String Billing type
PostPay: Pay-as-you-go
LoadBalancerEdition String Edition of the load balancer
Basic: Basic edition
Standard: Standard edition
StandardWithWaf: WAF enhanced edition
LoadBalancerStatus String Status of the load balancer instance
Inactive: Stopped
Active: Running
Provisioning: Creating
Configuring: Configuring
CreateFailed: Creation failed

Fields in tags and fields may change with subsequent updates

The value of tags.name is the instance ID, used as a unique identifier, and fields.message is a JSON serialized string

X. Appendix

Please refer to the official Alibaba Cloud documentation: