Configuring Tags for a RocketMQ Instance
Tags facilitate RocketMQ instance identification and management.
You can add tags to a RocketMQ instance when creating the instance or add tags on the Tags tab page of the created instance. You can also delete tags that are no longer used.
A tag consists of a tag key and a tag value. Table 1 lists the tag key and value requirements.
| Parameter | Requirement |
|---|---|
| Tag key |
|
| Tag value |
|
Notes and Constraints
A maximum of 20 tags can be added.
Prerequisite
A RocketMQ instance has been purchased.
Configuring Tags for a RocketMQ Instance
- Log in to the RocketMQ console.
- Click a RocketMQ instance name to go to the instance overview page.
- In the navigation pane, choose Instance > Tags.
- Click Edit Tag.
- Add, edit, or delete tags as required.
Table 2 Tag operations Operation
Procedure
Adding a tag
- Click Add to set tags with Tag key and Tag value. If you have predefined tags, select a predefined pair of tag key and value.
A maximum of 20 tags can be added.
- Click OK.
View the new tag on the Edit Tag or tag list page.
Editing a tag
Modify the tag key and value, and click OK.
View the edited tag on the Edit Tag or tag list page.
Deleting a tag
In the row containing the tag to be deleted, click Delete. Then, click OK to delete the tag.
The tags are deleted when they are no longer displayed on the Edit Tag page and tag list.
- Click Add to set tags with Tag key and Tag value. If you have predefined tags, select a predefined pair of tag key and value.
Filtering Instances by Tag
- Log in to the RocketMQ console.
- On the instance list page, click the search box and select the tag key and tag value.
The operators include is equal to =, is not equal to !=, contains :, and does not contain !=. You can set exact or fuzzy search.
Only the instances with the tags are displayed in the list.
Related Document
- To add and delete tags by calling an API, see Adding or Deleting Instance Tags in Batches.
- Instance's information can be queried by tag on the instance list page. For details, see Viewing Basic Information of a RocketMQ Instance.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.