# Ungroup process from K8S clusters

**URL:** <https://community.dynatrace.com/t/ungroup-process-from-k8s-clusters/53548>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, process-groups, kubernetes\
**Created:** [September 29, 2025, 9:15am UTC](https://community.dynatrace.com/t/ungroup-process-from-k8s-clusters/53548 "2025-09-29T09:15:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolasT123](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nicolasT123](https://community.dynatrace.com/u/nicolasT123)\
**Post date:** [September 29, 2025, 9:15am UTC](https://community.dynatrace.com/t/ungroup-process-from-k8s-clusters/53548/1 "2025-09-29T09:15:00Z")

</div>

Hello Everyone,

I am working in a Dynatrace Managed context. (Process grouping rules&nbsp; -&nbsp;Early adopter **not yet enabled** )

I’ve got multiple K8S clusters.

Per “region/location” and per “env” (preprod / prod).

so for example :

_clusterprodloc1,clusterprodloc2,clusterprodloc3_

_clusterpreprodloc2,clusterpreprodloc1,clusterpreprodloc3_

Dynatrace groups my process all together because it shares the same technology, namespace, workloads names whatever the env is.

I’d like to group it only by “env”.

How do I create a grouping rule for this ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [September 29, 2025, 6:36pm UTC](https://community.dynatrace.com/t/ungroup-process-from-k8s-clusters/53548/2 "2025-09-29T18:36:08Z")

</div>

Hi&nbsp;[@nicolasT123](https://community.dynatrace.com/user/85713)

I think you should use different hostgroups in the dynakube custom resource yaml by clusters.

> **[Organize your environment using host groups](https://docs.dynatrace.com/managed/observe/infrastructure-observability/hosts/configuration/organize-your-environment-using-host-groups)**
>
> Find out how Dynatrace enables you to organize your hosts, processes, and services using host groups.

“Additionally, host groups affect how process groups are detected. When the same process is running in two different host groups, Dynatrace will create one process group for each host group. This means you can also configure process groups differently depending on which host group they run in. Consequently, services are also grouped per host group. So you can configure services differently per host group.”

[DynaKube parameters for Dynatrace Operator — Dynatrace Managed Docs](https://docs.dynatrace.com/managed/ingest-from/setup-on-k8s/reference/dynakube-parameters)

## .spec.oneAgent

Parameter Description Default value Data type

| hostGroup | Specify the name of the group to which you want to assign the host. This method is preferred over the now obsolete&nbsp;--set-host-group&nbsp;argument. If both settings are used, this field takes precedence over the&nbsp;--set-host-group&nbsp;argument. | | string |
| --- | --- | --- | --- |

oneAgent:  
# Optional: Set a host group for OneAgent.  
#  
# hostGroup: “”

cloudNativeFullStack:

I hope it helps.

Best regards,

János

---

<div class="post-metadata">

**Author:** ![nicolasT123](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nicolasT123](https://community.dynatrace.com/u/nicolasT123)\
**Post date:** [September 30, 2025, 8:24am UTC](https://community.dynatrace.com/t/ungroup-process-from-k8s-clusters/53548/3 "2025-09-30T08:24:29Z")

</div>

Hi Miszo, Thank you for the answer&nbsp; !

Long ago, I think Hostgroup on Dynakube was not possible. This is what I missed by not reading the doc.

It must work and we will validate it asap.

Thanks for your precious help !
