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

Assigning a hostgroup to an OpenShift pod "host"

DynaMight Champion
DynaMight Champion


Although it seems counter-intuitive I was wondering if there is any possibility to assign a OpenShift pod to a hostgroup?

When deploying the oneagent to OpenShift I can use an InitContainer. This works fine and one can easily add custom metadata properties to the process that runs within the container.

But i was wondering - sine the pod is represented as a host in Dynatrace - how one could assign a hostgroup to this "Host". This would be really helpful e.g. in the case of using Management Zone filters the same way how one would use them for normal hosts.

It's a PaaS agent that is injected into the application only, but since the "host" is created as entity I was thinking maybe environment variables could be used to force the host group?

Any ideas?

Certified Dynatrace Master, Dynatrace Partner -

DynaMight Legend
DynaMight Legend

Good question, but since the injected OneAgent is PaaS version only, you most likely cannot. PaaS OneAgents don't support hostgroups as far as I'm aware as it's just "code modules" attached to the process. Host groups for Solaris (only PaaS is available, so I believe this is the very same situation) have been requested long time ago and there is no ETA yet.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Community Team
Community Team

Hello everyone,

A similar question with some interesting discussion can be found here:

How to add hostgroup to an OpenShift pod "host" 

If you have any questions about the Community, you can contact me at

Featured Posts