Docker based Autodiscovery with DataDog - How can we make it work?

Using the docker based autodiscovery with datadog does not work with nomad because nomad cannot add the required labels to docker containers.

For example,
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.


Is there a good way that anyone can think of to get a more complex docker label added to containers via the job spec?

I think the issue here was that using HCL for docker labels is restrictive for complex label keys

Workaround for the HCL issue was to use JSON over HTTP instead the nomad client w/ HCL