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

Tag Container Group Instance by Namespace

Ardhi
Guide

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

1.png

5 REPLIES 5

Romanenkov_Al3x
DynaMight Champion
DynaMight Champion

Hello.

Entities matching:

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

 

Result in UI:

Romanenkov_Al3x_1-1687938393579.png

Classic full-stack - Dynatrace Operator - Kubernetes.

 

Regards,

Alex Romanenkov

DT_NGINX_FORCE_UNKNOWN_VERSION_INSTRUMENTATION=1

hmm, couldn't find it even when reduced to

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

 

IzabelaRokita
Community Team
Community Team

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 😊

larry_roberts
DynaMight Champion
DynaMight Champion

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>")))

Featured Posts