Skip to content

Collector «Huawei Cloud-CC» Configuration Manual

Before reading this article, 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
domain_id str No Huawei Cloud account ID, defaults to the current account ID if not provided

If your AK user authorization uses enterprise project authorization, then domain_id must be specified because this type of authorization cannot retrieve the current account ID. The method to obtain the account ID: My Credentials - API Credentials, visible on the page.

2. Configuration Example

Specifying Account ID

Python
1
2
3
collector_configs = {
    'domain_id': 'xxx'
}

3. Data Reporting Format

After data synchronization is successful, you can view the data 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
{
  "measurement": "huaweicloud_cc",
  "tags": {
    "enterprise_project_id"         : "0",
    "domain_id"                     : "1e1fed98168d4ceXXXXXX0a0e285140c83",
    "instance_id"                   : "0e3a31ff1a4a4a9XXXXXXeaf93f8523b8",
    "instance_name"                 : "xxx",
    "name"                          : "0e3a31ff1a4a4a9XXXXXXeaf93f8523b8",
    "status"                        : "ACTIVE",
  },
  "fields": {
    "admin_state_up"                : "True",
    "description"                   : "xxx",
    "used_scene"                    : "vpc",
    "bandwidth_package_number"      : 0,
    "created_at"                    : "2023-07-25T09 : 05 : 42Z",
    "inter_region_bandwidth_number" : 0,
    "network_instance_number"       : 1,
    "updated_at"                    : "2023-07-25T09 : 05 : 42Z",
    "message"                       : "{JSON Instance Data}"
  }
}

Fields in tags and fields may change with subsequent updates.

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

The following fields are serialized JSON strings.

  • fields.message

X. Appendix

Huawei Cloud CC «Region IDs»

Refer to the official Huawei Cloud documentation: