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

Automatic tagging

skhamitkar
Participant

Hi community can anyone solve my problem?


Scenario: I want to auto tag all the workloads belonging to ms-prod, and ms-app namespaces which are under ms-prodcution cluster. Tell me how can i do this. Using entity selector expression. So far i was using this expression but its not working

 

type(CLOUD_APPLICATION).toRelationships.isNamespaceOfCa(type(CLOUD_APPLICATION_NAMESPACE),entityName.in("ms-prod","ms-app").toRelationships.isClusterOfNamespace(type(KUBERNETES_CLUSTER),entityName("ms-prodcution"))

also, If you guys can send me the documentation where i can find these relationship detail then that would be helpful



 

5 REPLIES 5

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Hello @skhamitkar 

Try the following.

type(CLOUD_APPLICATION),toRelationships.isNamespaceOfCa(type(CLOUD_APPLICATION_NAMESPACE),entityName.in("ms-prod","ms-app"),toRelationships.isClusterOfNamespace(type(KUBERNETES_CLUSTER),entityName("ms-prodcution")))

Regards,

Babar Qayyum

 @Babar_Qayyum 
You saved my day, thanks for your response😊

 

@Babar_Qayyum Can you send me the documentation link to learn more about dynatrace entity relations??
Any resource that can be helpfull mostly for beginners like me.

Hello @skhamitkar 

This is a starting point.

https://docs.dynatrace.com/docs/shortlink/api-entities-v2-selector

Regards,

Babar Qayyum

ChadTurner
DynaMight Legend
DynaMight Legend

on aside note with Kubernetes tagging, I really wish we could use placeholders with the entity selector tag method. 

-Chad

Featured Posts