Overview
Tag is a key-value pair provided by Tencent Cloud to identify a resource in the cloud. It can help you easily categorize and manage TDMQ for RocketMQ resources in many dimensions such as business, purpose, and owner.
Note:
Tencent Cloud will not use the tags you set, and they are only used for your management of TDMQ for RocketMQ resources.
Use Limits
You need to pay attention to the following use limits of tags:
|
| One Tencent Cloud resource can have up to 50 tags. |
| You cannot place qcloud , tencent , or project at the beginning of a tag key as they are reserved by the system. A tag key can contain up to 255 digits, letters, and special symbols (+=.@- ). |
| It can contain up to 127 digits, letters, and special symbols (+=.@- ) or be an empty string. |
Directions and Use Cases
Use case
A company has 6 TDMQ for RocketMQ clusters, with the department, business scope, and owner information as described below:
You can add the following three tags to the rocketmq-qzga74ov5gw1
cluster:
|
dept | ecommerce |
business | mkt |
owner | zhangsan |
Similarly, you can also set appropriate tags for other resources based on their department, business scope, and owner information.
Setting tag in TDMQ for RocketMQ console
After designing the tag keys and values as detailed above, you can log in to the TDMQ for RocketMQ console to set tags.
2. On the Cluster Management page, select the target region and cluster and click Edit Resource Tag at the top of the page.
3. Set tags in the Edit Tag pop-up window.
For example, add three tags for the rocketmq-qzga74ov5gw1
cluster.
Note:
If existing tags cannot meet your needs, go to Tag Management to create more. 4. Click OK, and you will be prompted that the tags have been modified successfully. You can view the tags bound to a cluster in its Resource Tag column.
Filtering resource by tag key
You can filter out clusters bound to a specific tag in the following steps:
1. Select Tag in the search box at the top-right corner of the page.
2. In the window that pops up, select the tag you want to search for and click OK.
For example, if you select Tag: owner:zhangsan
, you can filter out clusters bound to the tag key owner:zhangsan
.
Was this page helpful?