Collector "Huawei Cloud-Kafka" Configuration Manual
Before reading this article, please read the following first:
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:
Configuration One (Recommended)
Field | Type | Required | Description |
---|---|---|---|
regions |
list | Required | List of regions to collect data from |
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, then fetch resources based on IAM projects
Configuration Two (Legacy Compatibility)
Field | Type | Required | Description |
---|---|---|---|
region_projects |
dict | Required | List of "Region - Project ID" pairs for required 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 collect data from within that region See appendix for full list |
2. Configuration Example
Python | |
---|---|
1 2 3 |
|
Configuration Filter (Optional)
This collector script supports user-defined filters, allowing users to filter target resources by object attributes. The filter function returns True|False.
-
True: The target resource needs to be collected.
-
False: The target resource does not need to be collected.
Supported object attributes for filtering:
Attribute | Description |
---|---|
engine | Instance engine |
status | Instance status |
instance_id | Instance ID |
port | Port |
type | Instance type: cluster, cluster |
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
3. Data Reporting Format
After data synchronizes successfully, you can view the data in the {{( brand_name )}} "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 30 31 32 33 34 35 |
|
Descriptions of some fields are as follows:
Field | Type | Description |
---|---|---|
specification |
String | Instance specification. |
charging_mode |
String | Billing mode, 1 indicates pay-as-you-go billing, 0 indicates annual/monthly subscription billing. |
created_at |
String | Completion creation time. Timestamp format, representing the total milliseconds deviation from Greenwich Mean Time January 1, 1970, 00:00:00 UTC. |
resource_spec_code |
String | Resource specification |
maintain_begin |
String | Start time of maintenance window, format HH:mm:ss |
maintain_end |
String | End time of maintenance window, format HH:mm:ss |
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 is a string serialized in JSON format
X. Appendix
Refer to the official Huawei Cloud documentation: