Skip to content

Collector Configuration Manual for "Huawei Cloud-ROMA"

Before reading this, please first read:

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:

Configuration One (Recommended)

Field Type Required Description
regions list Required List of regions to collect data from
regions[#] str Required Region ID. Example: 'cn-north-4'
See appendix for full list

The collector will automatically retrieve all IAM projects under the region and then obtain resources based on these IAM projects.

Configuration Two (Legacy Compatibility)

Field Type Required Description
region_projects dict Required List of 'Region - Project ID' pairs for data collection
region_projects[#] str:list Required Key-value pairs where:
Key represents the region (e.g., 'cn-north-4')
Value represents the project IDs list within that region
See appendix for full list

2. Configuration Example

Specified Region

Collecting ROMA instance data corresponding to the cn-north-4 region.

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

3. Data Reporting Format

After data synchronizes correctly, it can be viewed in {{( brand_name )}}'s "Infrastructure - Resource Catalog".

Example of reported data:

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
{
  "measurement": "huaweicloud_roma",
  "tags": {
    "RegionId"             : "cn-north-4",
    "project_id"           : "15c6ce1c12da4059a8382076643ac2b9",
    "enterprise_project_id": "0",
    "name"                 : "e34610ca-0a37-4f04-8856-4101b08cc5e2",
    "instance_id"          : "e34610ca-0a37-4f04-8856-4101b08cc5e2",
    "instance_name"        : "roma-test",
    "publicip_address"     : "139.9.140.164",
    "status"               : "RUNNING"
  },
  "fields": {
    "charge_type"          : "prePaid",
    "cpu_arch"             : "x86_64",
    "description"          : " ",
    "flavor_id"            : "00400-30101-0--0",
    "flavor_type"          : "basic",
    "publicip_id"          : "55a6ef1b-498d-42fb-bbc7-d01ba1652bfc",
    "create_time"          : "2019-12-06T06:49:04Z",
    "maintain_begin"       : "22:00:00",
    "maintain_end"         : "02:00:00",
    "publicip_enable"      : true,
    "update_time"          : "2019-12-06T06:49:04Z",
    "message"              : "{Instance JSON data}"
  }
}

Descriptions of some parameters are as follows:

Field Type Description
flavor_type str Instance specification type
- Basic: basic
- Professional: professional
- Enterprise: enterprise
- Platinum: platinum
cpu_arch str CPU architecture type, possible values:
x86_64: x86 architecture
aarch64: arm architecture
maintain_begin str Start time for maintenance
maintain_end str End time for maintenance

Fields in tags and fields may change with subsequent updates.

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

The following fields are serialized as JSON strings.

  • fields.message

X. Appendix

Huawei Cloud ROMA "Region ID"

Please refer to the official Huawei Cloud documentation: