Adding a Tag for CLOUD_APPLICATION_INSTANCE

Hey Everyone,
Hope all is well.
I have gained some good experience in Tagging the Kubernetes environment but
I am having issues tagging CLOUD_APPLICATION_INSTANCE. :disappointed_face:
I tried

type(CLOUD_APPLICATION_INSTANCE),toRelationships.isClusterOfCai(type(KUBERNETES_CLUSTER),entityName.in("KUBERNETES_CLUSTER-“dt_name”)

and

type(CLOUD_APPLICATION_INSTANCE),fromRelationships.isNamespaceOfCai(entityId("CLOUD_APPLICATION_NAMESPACE-“dt_name”))
The error that I get is

  • entitySelector Entity selector contains type which does not support automatically applied tags
    Can someone please give me some Dynatrace pointers?
    Thank you

You’ll want to use: type(“Cloud_Application”), toRelationships.isClusterOfCa(type(“KUBERNETES_CLUSTER”), entityName(“<CLUSTER NAME>”))

You can then use that design for the namespace segment as well.

Hi @dreeseLP you are not doing anything wrong and is not an error, as you can see in this post  auto-tags for type CLOUD_APPLICATION_INSTANCE is not supported due to performance implications.