I removed my AWS EC2 integration. Why do my hosts still have AWS tags?

How this can happen:

You can use the EC2 flavor of the Amazon Web Services integration to collect performance data from CloudWatch pertaining to your EC2 instances. You can also collect performance data from EC2 instances by installing a datadog agent on them. For several reasons, many users prefer to collect performance data from their EC2 instances using both of these methods. In this case, datadog's backend will merge the data from both these sources to the same "host" object in your datadog account (this merging can take a little time but completes within a few hours). 

If at some point you decide to remove the AWS integration for one of your EC2s but continue to run a datadog agent on that host, the host in your datadog account will continue to have the old host-tags associated with it that were collected from AWS. This is intended behavior, and it does not indicate that the AWS EC2 integration is still enabled for that host. (To verify that, from your metric explorer you can make sure that your EC2 metrics are not being tagged with that hostname, or simply not being collected at all.)

 

What can be done to remove these tags:

Continuing to have these AWS host-tags associated with these hosts is often not considered problematic by our users, and is sometimes even preferred (some users even like to collect AWS host tags from datadog agents while not running the AWS EC2 integration). But if you prefer to have these AWS host-tags removed from these hosts, you can do this by using our "Tags" API endpoint

For added convenience, one of our engineers has made available a python script that can be easily used to remove all AWS host-tags from either some or all of the hosts in your account. You can find this python script here. (Do note that you will have to edit certain variables in this script for it to work, such as api_key and application_key)

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk