Limit API calls to AWS using tags
By default, Dynatrace monitors all Amazon Web Services that have been specified in your permission policy. Optionally, you can use tagging to limit the AWS resources (AWS service instances) that are monitored by Dynatrace.
Add tags in AWS
To add a tag
- Sign in to your Amazon Management Console and go to the dashboard of the service you want to tag.
- Select Instances to see a list of your environments, then select an instance.
- In the panel below the list, select Tags.
- Select Add/Edit tags, then select Create tag.
- Enter a tag key/value pair (for example, 'monitor_dynatrace' for Key, and 'true' for Value).
- Select Save.
Dynatrace monitoring tags work for built-in: EC2, RDS, ELB, EBS, auto-scaling groups, DynamoDB, Lambda, and most cloud services. Expand the table below to see which services can be filtered by tags.
Configure Dynatrace to use AWS tags
Dynatrace enables you to use up to 10 AWS tags at a time. Once configured, Dynatrace takes tagged services into account when querying performance counters.
AWS tag key/value pairs are executed with an OR operator. Keys don't need to be unique.
Tag-based AWS monitoring offers a lot of flexibility and is particularly helpful if:
-
You leverage multiple Dynatrace environments and you want to monitor distinct AWS services running under the same AWS account.
Tag examples:monitor_dynatrace : myenvironment1; monitor_dynatrace : myenvironment2
-
You need to monitor the same AWS account, but distinguish between production and staging services.
Tag examples:
monitor_dynatrace : production; monitor_dynatrace : staging
To assign tags to a specific AWS instance
- Set up Dynatrace for AWS monitoring.
- In Dynatrace, go to Settings > Cloud and virtualization > AWS and select the AWS instance.
- For Resources to be monitored, select Monitor resources selected by tags.
- Enter the Key and Value.
- Select Save.