Skip to content

Collector "Alibaba Cloud-RocketMQ 4.0" Configuration Manual

Before reading this document, please read:

Tip

Before using this collector, you must install the "Integration Core Package" and its accompanying third-party dependencies.

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-hangzhou'
See appendix for the complete list

2. Configuration Example

Specifying Regions

Collect data from Hangzhou and Shanghai regions

collector_configs = {
    'regions': [ 'cn-hangzhou', 'cn-shanghai' ]
}

3. Data Reporting Format

After data is successfully synchronized, you can view the data in the "Infrastructure-Resource Catalog" of TrueWatch.

Example of reported data:

{
  "measurement": "aliyun_rocketmq4",
  "tags": {
    "name"                     : "MQ_INST_138015630679****_BAAy1Hac",
    "InstanceName"             : "test",
    "InstanceId"               : "MQ_INST_138015630679****_BAAy1Hac",
    "InstanceType"             : "2",
    "spInstanceId"             : "ons-cn-m7r1r5f****",
  },
  "fields": {
    "IndependentNaming"        : "true",
    "InstanceStatus"           : 0,
    "CreateTime"               : "1570701259403",
    "Endpoints"                : "{JSON data of access points for various protocols}",
    "IndependentNaming"        : "true",
    "MaxTps"                   : "10000",
    "Remark"                   : "xxxx",
    "TopicCapacity"            : "25",
    "spInstanceType"           : "1",
  }
}

Partial parameter descriptions:

InstanceStatus (Instance Status)

Value Description
0 Platinum Edition instance deploying
2 Standard Edition instance overdue
5 Standard Edition or Platinum Edition instance in service
7 Platinum Edition instance upgrading and service available

spInstanceType (Instance Sale Type)

Value Description
1 Standard Edition (Postpaid) instance
2 Platinum Edition (Annual/Monthly) instance
Note

Fields in tags and fields may change with subsequent updates.

Tip

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

Tip

fields.message, fields.disks, fields.network_interfaces, fields.instance_renew_attribute, fields.instances_full_status, fields.OperationLocks are all JSON serialized strings.

X. Appendix

Please refer to the official Alibaba Cloud documentation: