-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include container id in docker_daemon metrics #2353
Comments
Hi @ejholmes and thanks for opening this issue! We recommend using a combination of the Basically we want to avoid tagging the metrics by container ID as it would create a lot of different (and possibly short-lived) sets of tags for each metric, which would put some stress on our backend while (as far as we know) not adding much value in terms of usability. Do you have a use-case where using the |
@olivielpeau understandable. Basically, our use case is that We're using ECS, so in theory we're already creating a lot of short lived |
Thanks @ejholmes, we'll discuss this internally and see if/how we could add this tag. Will keep you updated! |
@ejholmes I think you can just edit this line https://github.com/DataDog/dd-agent/blob/master/conf.d/docker_daemon.yaml.example#L105 and add "container_id" to it to collect the container_id as a tag. Let us know how it goes and feel free to reopen if it doesn't work! |
@remh thanks for the heads up, but it looks like there's no tag extractor for container_id. Would you guys accept a PR if |
Sorry for the delay @ejholmes . Just created a PR to add an extractor for that. |
Currently, the docker_daemon check does not include the container id as a tag in the metrics that are generated. Including this would be a great addition. Adding it would be pretty straightforward, but I'm not sure if there was any reasoning behind not including it in the first place.
The text was updated successfully, but these errors were encountered: