Using tags to identify resources in your DevOps Guru applications - Amazon DevOps Guru

Using tags to identify resources in your DevOps Guru applications

You can use tags to identify the AWS resources that Amazon DevOps Guru analyzes and to specify which resources are grouped for monitoring with the selected tag key and tag values. You can edit these configurations when you set up DevOps Guru or when you choose Edit analyzed resources from the Analyzed resources page. After you select Tags, you choose a specific tag key that begins with 'devops-guru-'. To analyze all resources in the account and use tag values to group the resources, select All Account Resources. To use tag values to specify the resources for DevOps Guru to analyze, select Choose specific tag values.

Note

When All Account Resources is selected and no tag value exists, resources without the tag key are grouped and analyzed separately.

You use a tag's key to identify the resources, then use values with that key to group resources into your applications. For example, you can tag your resources with the key devops-guru-applications, then use that key with a different value for each of your applications. You might use the tag key-value pairs devops-guru-applications/database, devops-guru-applications/cicd, and devops-guru-applications/monitoring to identify three applications in your account. Each application is made up of related resources that contain the same tag key-value pair. You add tags to your resources using the AWS service to which they belong. For more information, see Adding AWS tags to AWS resources.

After you add a tag to the resources in your application, you can filter your insights by the tags on resources that generated them. For more information about how to filter your insights using a tag, see Viewing DevOps Guru insights.

For more information about the supported services and resources, see Amazon DevOps Guru pricing.

What is an AWS tag?

Tags help you identify and organize your AWS resources. Many AWS services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an AWS Lambda function. For more information about using tags, see the Tagging best practices whitepaper.

Each AWS tag has two parts.

  • A tag key (for example, CostCenter, Environment, Project, or Secret). Tag keys are case-sensitive.

  • An optional field known as a tag value (for example, 111122223333, Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case-sensitive.

Together these are known as key-value pairs.

Defining a DevOps Guru application using a tag

To define your Amazon DevOps Guru application using a tag, add that tag to the AWS resources in your account that make up your application. Your tag contains a key and a value. We recommend that you add a tag to each of your AWS resources analyzed by DevOps Guru that has the same key. Use a different value in the tag to group resources into your applications. For example, you might assign tags with the key devops-guru-analysis-boundary to all the AWS resources in your coverage boundary. Use different values with that key to identify applications in your account. You might use the values containers, database, and monitoring for three applications. For more information, see Updating your AWS analysis coverage in DevOps Guru.

If you use AWS tags to specify which resources to analyze, you can use tags with only one key. You can pair your tags' key paired with any value. Use the value to group the resources that contain your key into your operational applications.

Important

The string used for a key in a tag that you use to define your resource coverage must begin with the prefix Devops-guru-. The tag key might be DevOps-Guru-deployment-application or devops-guru-rds-application. When you create a key, the case of characters in the key can be whatever you choose. After you create a key, it is case-sensitive. For example, DevOps Guru works with a key named devops-guru-rds and a key named DevOps-Guru-RDS, and these act as two different keys. Possible key/value pairs in your application might be Devops-Guru-production-application/RDS or Devops-Guru-production-application/containers.

Using tags with DevOps Guru

Specify the AWS tags that identify the AWS resources that you want Amazon DevOps Guru to analyze, or specify tag values that identify which resources will be grouped. These resources are your resource coverage boundary. You can choose one key and zero or more values.

To choose your tags
  1. Open the Amazon DevOps Guru console at https://console.aws.amazon.com/devops-guru/.

  2. Open the navigation pane, then expand Settings.

  3. In Analyzed resources, choose Edit.

  4. Choose Tags if you want DevOps Guru to analyze all resources that contain the tags you choose. Choose a key, then choose one of the following options.

    • All account resources – Analyze all AWS resources in the current Region and account. Resources with the selected tag key are grouped by tag value, if any exist. Resources without this tag key are grouped and analyzed separately.

    • Choose specific tag values – All resources that contain a tag with the key you chose are analyzed. DevOps Guru groups your resources into applications by your tag's values.

    The tag's key must begin with the prefix devops-guru-. This prefix isn't case-sensitive. For example, a valid key is DevOps-Guru-Production-Applications.

  5. Choose Save.

Adding AWS tags to AWS resources

When you specify the AWS tags that identify the AWS resources that you want DevOps Guru to analyze, choose tags that have resources associated with them. You can add tags to your resources using the AWS service to which each resource belongs, or using the AWS Tag Editor.

  • To manage tags using your resources' service, use the console, AWS Command Line Interface, or SDK of the service to which a resource belongs. For example, you can tag an Amazon Kinesis stream resource or an Amazon CloudFront distribution resource. These are two examples of services with resources that can be tagged. Most resources that DevOps Guru can analyze support tags. For more information, see Tagging your streams in the Amazon Kinesis Developer Guide and Tagging a distribution in the Amazon CloudFront Developer Guide. To learn how to add tags to other types of resources, see the user guide or developer guide for the AWS service to which they belong.

    Note

    When you tag Amazon RDS resources, you must tag the database instance and not the cluster.

  • You can use the AWS Tag Editor to manage tags by resources in your Region and by resources in specific AWS services. For more information, see Tag editor in the AWS Resource Group and Tags User Guide.

When you add a tag to a resource, you can add the key only, or the key and a value. For example, you can create a tag with the key devops-guru- for all the resources that are part of your DevOps application. You can also add a tag with the key devops-guru- and the value RDS, then add that key-value pair to only the Amazon RDS resources in your application. This is useful if you want to view insights in the console that are generated from only the Amazon RDS resources in your application.