View tags for a rule groups namespace
Tags can help you identify and organize your AWS resources and manage access to them. For more information about tagging strategies, see Tagging AWS Resources.
View tags for an Amazon Managed Service for Prometheus rule groups namespace (console)
You can use the console to view the tags associated with a Amazon Managed Service for Prometheus rule groups namespace.
-
Open the Amazon Managed Service for Prometheus console at https://console.aws.amazon.com/prometheus/
. -
In the navigation pane, choose the menu icon.
-
Choose All workspaces.
-
Choose the workspace ID of the workspace that you want to manage.
-
Choose the Rules management tab.
-
Choose the namespace name.
View tags for an Amazon Managed Service for Prometheus workspace (AWS CLI)
Follow these steps to use the AWS CLI to view the AWS tags for a rule groups namespace. If no tags have been added, the returned list is empty.
At the terminal or command line, run the list-tags-for-resource command. For example, to view a list of tag keys and tag values for a rule groups namespace:
aws amp list-tags-for-resource --resource-arn rn:aws:aps:
us-west-2
:123456789012
:rulegroupsnamespace/IDstring
/namespace_name
If successful, this command returns information similar to the following:
{ "tags": { "Status": "Secret", "Team": "My-Team" } }