Using the docker based autodiscovery with datadog does not work with nomad because nomad cannot add the required labels to docker containers.
The Datadog Agent can autodiscover metrics by scanning the docker daemon for containers with certain labels. However, those labels are not allowed in HCL job spec due to the “.” in the key.
LABEL "com.datadoghq.ad.check_names"='[<INTEGRATION_NAME>]' LABEL "com.datadoghq.ad.init_configs"='[<INIT_CONFIG>]' LABEL "com.datadoghq.ad.instances"='[<INSTANCE_CONFIG>]'
Is there a good way that anyone can think of to get a more complex docker label added to containers via the job spec?