Skip to content
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

Can not report docker labels in containers to the DataDog dashboard as a tag #3744

Open
kithokit opened this issue May 29, 2018 · 1 comment

Comments

@kithokit
Copy link

Hello, i try to look up the documents using the dd-agent, and would like to get the custom docker labels reported to the datadog dashboard. It fails.

Here is my json dd-agent conf

{
  "containerDefinitions": [
    {
      "name": "dd-agent",
      "image": "datadog/docker-dd-agent:latest",
      "cpu": 50,
      "memory": 256,
      "essential": true,
      "mountPoints": [
        {
          "containerPath": "/var/run/docker.sock",
          "sourceVolume": "docker_sock"
        },
        {
          "containerPath": "/host/sys/fs/cgroup",
          "sourceVolume": "cgroup",
          "readOnly": true
        },
        {
          "containerPath": "/host/proc",
          "sourceVolume": "proc",
          "readOnly": true
        }
      ],
      "environment": [
        {
          "name": "API_KEY",
          "value": "{{ datadog_api_key }}"
        },
        {
      	  "name": "SD_BACKEND",
	  	  "value": "docker"
		},
		{
      	          "name": "DD_COLLECT_LABELS_AS_TAGS",
	  	  "value": "com.amazonaws.ecs.container-name,service-version"
		},
		{
		  "name": "DD_DOCKER_LABELS_AS_TAGS",
		  "value": "com.amazonaws.ecs.container-name,service-version"
		},
		{
		  "name": "EC2_TAGS",
		  "value": "yes"
		},
		{
		  "name": "TAGS",
		  "value": "kitmarker:rnd"
		}
      ]
    }
  ],

Inside the containers, i verify i got the the docker labels , "service-version" and container-name, but it doesn't report to the Datadog dashboard.

What did i miss? I am using dd-agent:latest image

@jhmartin
Copy link

jhmartin commented Aug 14, 2018

I am seeing the same thing.
Agent 6.4.2 - Commit: 155fddb - Serialization version: 4.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants