Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dockerfile x HostGroup

I have several fargate aws tasks in the environment. None of them have a host group configured. I'm trying to set --set-host-group inside my docker file, to make the deploy/run image with this information, but it's not working.

I made some tests, passing the parameter inside of entrypoint and inside of command (Tasks definition), none of them worked.

I spoke to chat and they told me it is not supported, or because I cannot set the host group of my AWS fargates tasks. Is correct?

If yes, does not have any workaround for this?

Dynatrace Professional

Dynatrace Participant
Dynatrace Participant

Hi Rodrigo,

Setting host group in this case is not possible because the Oneagent is running in the container and not in full-stack.

We have a workaround that can help. You can use DT_CUSTOM_PROP environment variable to equal your host group. It will show on the processes, then you could use a auto tagging rule to propagate to the hosts.

Hope that helps.






I agree with the solution provided by Abraham, had this issue in the past and the HOST_GROUP/--set-host-group flag was not supported on docker container

Im pretty sure that was listed as one of the limitations in this list but I cannot see it anymore (I'm also talking with docs team to update it)

The workaround I used was DT_TAGS and DT_CUSTOM_PROP environment variables

Thanks, this is a great solution, I updated the image for tags because change a little.


Also when you choose "Custom metadata" choose the one for Process Group not host.

The true delight is in the finding out rather than in the knowing.

Hi guys, thanks for the reply.

Just one more doubt.

Should I pass this parameter as an ARG in my dockerfile, like:


Dynatrace Professional

Cant remember if ENV or ARG (or if any of those will work), the syntax would be :


also you can pass it with key:value format:

and multiple values
DT_CUSTOM_PROP="App=springbootdemo Environment=Dev" 


If you pass as ARG does that still work? I can't see how Dynatrace could detect the DT_CUSTOM_PROP values if ARG values are only available at runtime?

I was thinking it would be ENV DT_CUSTOM_PROP but my development team are unsure. 

Hello @Scott_McMahon please see this post.

The true delight is in the finding out rather than in the knowing.

Featured Posts