Huawei Cloud DMS RocketMQ
Collect Huawei Cloud DMS RocketMQ Metrics
Configuration¶
Install Func¶
It is recommended to activate the Guance Integration - Extensions - DataFlux Func (Automata): all prerequisites are automatically installed. Please proceed with the script installation.
If you are deploying Func yourself, refer to Self-deploying Func
Install Script¶
Note: Please prepare the Huawei Cloud AK that meets the requirements in advance (for simplicity, you can directly grant the global read-only permission
Tenant Guest)
Automata Installation Script¶
- Log in to the Guance console.
- Click the [Integration] menu and select [Cloud Account Management].
- Click [Add Cloud Account], select [Huawei Cloud], and fill in the required information on the interface. If you have already configured the cloud account information, ignore this step.
- Click [Test]. After the test is successful, click [Save]. If the test fails, please check if the relevant configuration information is correct and retest.
- Click [Cloud Account Management]. You can see the added cloud account in the list. Click the corresponding cloud account to enter the details page.
- Click the [Integration] button on the cloud account details page. Under the
Not Installedlist, findHuawei Cloud DMS RocketMQand click the [Install] button. The installation interface will pop up for installation.
Manual Installation Script¶
-
Log in to the Func console, click [Script Market], and enter the Guance script market. Search for
integration_huaweicloud_rocketmq. -
Click [Install] and enter the corresponding parameters: Huawei Cloud AK, SK, and account name.
-
Click [Deploy Startup Script]. The system will automatically create the
Startupscript set and configure the corresponding startup script. -
After enabling, you can see the corresponding automatic trigger configuration in "Manage / Automatic Trigger Configuration". Click [Execute] to execute it immediately without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.
Verification¶
- In "Manage / Automatic Trigger Configuration", confirm whether the corresponding task has the automatic trigger configuration. You can also check the corresponding task records and logs for any exceptions.
- In Guance, check if asset information exists in "Infrastructure - Resource Catalog".
- In Guance, check if there are corresponding monitoring data in "Metrics".
Metrics¶
Configure Huawei Cloud DMS RocketMQ Metrics. You can collect more metrics by configuration Huawei Cloud DMS RocketMQ Metrics Details
Object¶
After the data is synchronized normally, you can view the data in Guance's "Infrastructure - Resource Catalog".
{
"measurement": "huaweicloud_rocketmq",
"tags": {
"RegionId" : "cn-north-4",
"project_id" : "756ada1aa17e4049b2a16ea41912e52d",
"enterprise_project_id" : "o78hhbss-xxxx-xxxx-xxxx-cba3d38cf2f9",
"instance_id" : "c0b0ea90-xxxx-xxxx-xxxx-cba3d38cf2f9",
"instance_name" : "rocketmq-xxxxx",
"engine" : "reliability",
"status" : "RUNNING"
},
"fields": {
"charging_mode" : "1",
"type" : "cluster.small",
"engine_version" : "4.8.0",
"description" : "",
"specification" : "rocketmq.4u8g.cluster.small * 1 broker",
"storage_space" : 250,
"used_storage_space" : 0,
"resource_spec_code" : "xxxx",
"created_at" : "1687158517888",
"maintain_begin" : "02:00:00",
"maintain_end" : "06:00:00",
"enable_publicip" : false,
"publicip_address" : "12.xx.xx.32",
"publicip_id" : "xxxxxxxxxxxxxxxxxxxss",
"total_storage_space": 300,
"available_zones" : "xxxxxx"
}
}
Partial field descriptions are as follows:
| Field | Type | Description |
|---|---|---|
specification |
String | Instance specification. |
charging_mode |
String | Billing mode, 1 indicates pay-as-you-go, 0 indicates subscription. |
created_at |
String | Creation completion time. Format is a timestamp, which refers to the total milliseconds from Greenwich Mean Time 1970-01-01 00:00:00 to the specified time. |
resource_spec_code |
String | Resource specification |
maintain_begin |
String | Maintenance window start time, format is HH |
maintain_end |
String | Maintenance window end time, format is HH |
Note: The fields in
tagsandfieldsmay change with subsequent updates.Note 1: The value of
tags.instance_idis the instance ID, used as a unique identifier.
