Skip to content

Don't works com.datadoghq.ad.logs in service->deploy->labels on docker swarm #9465

Description

@4n70w4

Describe what happened:

Don't works label com.datadoghq.ad.logs if defined in service->deploy->labels.

But works if defined in service->labels.

It looks strange.

For example, traefik and many other services work with labels from the deploy section.

Steps to reproduce the issue:

version: '3.8'
services:
 
  traefik:
    image: traefik
  
    deploy:
      labels:
        traefik.enable: 'true'
        traefik.dashboard.frontend.rule: Host:{{ traefik_domain }}
        traefik.dashboard.port: 8080

        com.datadoghq.ad.logs: '[{"source": "something", "service": "balancer"}]'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions