AWS Beanstalk Blue and Green Deploy

We are using Dynatrace to monitoring our Beanstalk application, my problem is we are using Blue and Green Deploy process where I have two environment, but one is clone. How can I work with Dynatrace to disable a set of agents when I swap my environement?

For the AWS services instances that you cannot run OneAgent on (like DynamoDB, EBS etc) you could swap the tags which you use for limiting Dynatrace monitoring.