cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

Ungroup process from K8S clusters

nicolasT123
Visitor

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.

2 REPLIES 2

Mizső
DynaMight Guru
DynaMight Guru

Hi @nicolasT123 

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

https://docs.dynatrace.com/managed/shortlink/host-groups#how-host-groups-affect-your-monitoring-envi...

"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

.spec.oneAgent

Parameter Description Default value Data type
hostGroupSpecify 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

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

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 ! 

Featured Posts