29 Sep 2025 10:15 AM
Hello Everyone,
I am working in a Dynatrace Managed context. (Process grouping rules - 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.
Solved! Go to Solution.
29 Sep 2025 07:36 PM
Hi @nicolasT123
I think you should use different hostgroups in the dynakube custom resource yaml by clusters.
"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
hostGroup | Specify the name of the group to which you want to assign the host. This method is preferred over the now obsolete --set-host-group argument. If both settings are used, this field takes precedence over the --set-host-group argument. |
| string |
oneAgent:
# Optional: Set a host group for OneAgent.
#
# hostGroup: ""
cloudNativeFullStack:
I hope it helps.
Best regards,
János
30 Sep 2025 09:24 AM
Hi Miszo, Thank you for the answer !
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 !