Tag Container Group Instance by Namespace

Hi,

Is it possible we can tag CGI by kubernetes namespace?

Tried it with something like

type(CONTAINER_GROUP_INSTANCE),fromRelationship.isCgiOfNamespace(type("CLOUD_APPLICATION_NAMESPACE"))

and it’s variation but no luck

Hello.

Entities matching:

type(CONTAINER_GROUP_INSTANCE),fromRelationships.isCgiOfNamespace(type(CLOUD_APPLICATION_NAMESPACE),entityName(“zoo-app”))

Result in UI:

Classic full-stack - Dynatrace Operator - Kubernetes.

Regards,

Alex Romanenkov

hmm, couldn’t find it even when reduced to

type(CONTAINER_GROUP_INSTANCE),fromRelationships.isCgiOfNamespace(type(CLOUD_APPLICATION_NAMESPACE))

Hey @Ardhi, did you manage to find the solution to your problem? If so, it would be amazing if you’ve shared it with the rest of the Community! If not, let me know, and I’ll look for some further assistance 😊

Has anyone found a way to do this for CONTAINER_GROUP rather than CONTAINER_GROUP_INSTANCE?

Thanks!

With a bit of help, this worked for me in case anyone needs it 👍

type(CONTAINER_GROUP),toRelationships.isInstanceOf(type(CONTAINER_GROUP_INSTANCE),fromRelationships.isCgiOfNamespace(type(CLOUD_APPLICATION_NAMESPACE),entityName.startsWith(“<NAMESPACE NAME>”)))