Skip to content

Collector Configuration Manual for "Volcengine - Elastic Scaling Group"

Before reading this, please read the following first:

Before using this collector, you must install the 'Integration Core Package' and its associated 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 to collect data from
regions[#] str Required Region ID. Example: 'cn-shanghai'
See the full table in the appendix

2. Configuration Example

Specify Region

Collect data from the Beijing region

Python
1
2
3
collector_configs = {
    'regions': [ 'cn-beijing' ]
}

3. Data Reporting Format

After the data synchronizes successfully, you can view it in the "Infrastructure - Resource Catalog" section of {{( brand_name }}}.

An example of the reported data is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  "fields": {
    "ActiveScalingConfigurationId": "",
    "CreatedAt": "2024-03-11T10:43:48Z",
    "DBInstanceIds": "[RDS database information related to the scaling group]",
    "DesireInstanceNumber": -1,
    "InstanceTerminatePolicy": "OldestScalingConfigurationWithOldestInstance",
    "LaunchTemplateOverrides": "[instance launch template information]",
    "LoadBalancerHealthCheckGracePeriod": 300,
    "MaxInstanceNumber": 1,
    "MinInstanceNumber": 1,
    "ServerGroupAttributes": "[load balancer information related to the scaling group]",
    "StoppedInstanceCount": 0,
    "SubnetIds": "[list of subnet IDs for the primary network interface of instances in the scaling group]",
    "TotalInstanceCount": 0,
    "UpdatedAt": "2024-03-11T10:43:48Z",
    "message": "{JSON data of the instance}"
  },
  "measurement": "volcengine_scaling_groups",
  "tags": {
    "DefaultCooldown": "300",
    "HealthCheckType": "ECS",
    "LaunchTemplateId": "",
    "LaunchTemplateVersion": "",
    "LifecycleState": "InActive",
    "ProjectName": "",
    "ScalingGroupId": "scg-yd0t4mgo4bjgwwxjl85j",
    "ScalingGroupName": "zsh_test",
    "ScalingMode": "release",
    "VpcId": "vpc-13fw9sis8nvnk3n6nu5lu5l4g",
    "name": "scg-yd0t4mgo4bjgwwxjl85j"
  }
}

Fields in tags and fields may change with subsequent updates

The value of tags.name is the instance ID, used as a unique identifier. fields.message, fields.DBInstanceIds, fields.LaunchTemplateOverrides, fields.ServerGroupAttributes, and fields.SubnetIds are all JSON serialized strings.

X. Appendix

Refer to the official Volcengine documentation: