Overview
Tag is a key-value pair provided by Tencent Cloud to identify a resource in the cloud. You can use it to 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 configure. They are only used for you to manage TDMQ for RocketMQ resources.
Use Restrictions
Please be aware of the following restrictions when using tags:
|
Quantity limit | Each cloud resource allows up to 50 tags. |
Tag key restrictions | qcloud , tencent , and project are system reserved tag keys and cannot be created.
A Tag key can only contain numbers , letters , and +=.@- symbols. The maximum length of a tag key is 255 characters. |
Tag value restrictions | A tag value can only contain empty strings or numbers , letters , and +=.@- symbols. The maximum length of a tag value is 127 characters. |
Operation Procedure and Use Cases
Use Case Description
A company has six TDMQ for RocketMQ clusters on Tencent Cloud. The following shows the department, business scope, and responsible person information of the six clusters:
|
rocketmq-qzga74ov5gw1 | E-commerce | Marketing campaigns | John |
rocketmq-qzga74ov5gw2 | E-commerce | Marketing campaigns | Jack |
rocketmq-qzga74ov5gw3 | Games | Game A | John |
rocketmq-qzga74ov5gw4 | Games | Game B | Jack |
rocketmq-qzga74ov5gw5 | Entertainment | Post-production | Jack |
rocketmq-qzga74ov5gw6 | Entertainment | Post-production | John |
Using 'rocketmq-qzga74ov5gw1' as an example, we can add the following three sets of tags to this instance:
|
dept | ecommerce |
business | mkt |
owner | John |
Appropriate tags can also be assigned to other queue resources in the same way according to their department, business scope, and responsible person.
Setting TAG on the TDMQ for RocketMQ Console
The preceding scenario is used as an example. After you design the tag key and tag value, you can log in to the TDMQ for RocketMQ console to configure the tags.
2. In the cluster management list page, select the appropriate region. Then, tick the cluster for which you want to edit the tag and click Edit Resource TAG at the top of the page.
3. Set the tag in the displayed "Edit TAG" window.
Note:
If existing tags do not meet your specifications, go to TAG Management to create new tags. 4. Click OK. After receiving a successful modification prompt from the system, view the bound tags in the cluster's resource tag column.
Filtering Resources with a Tag Key
If you want to filter clusters bound to the corresponding tag, perform the following operations.
1. Select TAG from the search box located in the upper right corner of the page.
2. In the window that is displayed after TAG:, select the tag you want to search for and click OK to initiate the search. For example, by selecting TAG:owner:zhangsan
, you can filter out clusters associated with the tag key owner:zhangsan
.
Editing Tags
1. In the cluster management list page, select the appropriate region. Then, tick the cluster for which you want to edit the tag and click Edit Resource TAG at the top of the page.
Note:
You can batch edit tags for a maximum of 20 resources at a time.
2. In the displayed "Edit TAG" window, add, modify, or delete tags as needed.
Was this page helpful?