Skip to content

Configuration Manual for Collector "Huawei Cloud - Gaussdb - Nosql"

Before reading this article, 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 be collected
regions[#] str Required Region ID. For example: 'cn-north-4'
See appendix for full list

The collector will automatically fetch all IAM projects under the region and then obtain resources based on 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 In key-value pairs:
Key represents the region (e.g., 'cn-north-4')
Value represents the list of project IDs to be collected in that region
See appendix for full list

2. Configuration Example

Specify Region

Collect data from Gaussdb-Nosql instances corresponding to projects in the cn-north-4 region.

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

3. Data Reporting Format

After data synchronization is successful, you can view the data in the "TrueWatch" "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
28
29
{
  "measurement": "huaweicloud_gaussdb_nosql",
  "tags": {
    "RegionId"             : "cn-north-4",
    "project_id"           : "15c6ce1c12dxxxx0xxxx2076643ac2b9",
    "enterprise_project_id": "0",
    "name"                 : "1236a915462940xxxxxx879882200in02",
    "instance_id"          : "1236a915462940xxxxxx879882200in02",
    "instance_name"        : "nosql-efa7",
    "engine"               : "rocksDB",
    "status"               : "normal"
  },
  "fields": {
    "db_user_name"         : "rwuser",
    "pay_mode"             : "0",
    "port"                 : "8635",
    "security_group_id"    : "7aa51dbf-xxxx-xxxx-xxxx-dad3c4828b58",
    "subnet_id"            : "f1df08c5-xxxx-xxxx-xxxx-de435a51007b",
    "vpc_id"               : "674e9b42-xxxx-xxxx-xxxx-5abcc565b961",
    "actions"              : "[]",
    "create_time"          : "2023-08-01T14:17:40+0800",
    "update_time"          : "2023-08-01T14:17:42+0800",
    "backup_strategy"      : "{Instance JSON data}",
    "datastore"            : "{Instance JSON data}",
    "groups"               : "[{Instance JSON data}]",
    "time_zone"            : "",
    "message"              : "{Instance JSON data}"
  }
}

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 strings after JSON serialization

  • fields.message
  • fields.backup_strategy
  • fields.datastore
  • fields.groups
  • fields.actions

X. Appendix

Huawei Cloud Gaussdb-Nosql "Region ID"

Refer to the official Huawei Cloud documentation: