Calling Service to a specific namespace

Hi Team,

Could anyone suggest the best way to plot calling services for a specific namespace, particularly for the namespace?

Thanks in advance for your help!

Regards,

Vikas

Hi @Vikas_g1997 
You can tag individual services and then use those tags to assign them to management zones, for example ones created per namespace. For tagging, you can use an auto-tagging rule.

lubrman_0-1765794211683.png

Hi @lubrman ,

Thank you for the suggestion. However, I believe applying the mentioned tag only affects the processes/services within the specific namespace. I was actually looking into the services that are calling the tagged services under a namespace to plot it .

Hi @Vikas_g1997

I now understand the question, but unfortunately there is probably no easy answer. The options are either to use Grail, where you create a bucket with this data within dt.entity.service, or to use the Dynatrace API via a script, where you choose the entity selector ‘toRelationships’ and retrieve the data separately for each service.

You can try to use this entity selector. This will give you all the services that are calling services in the namespace you specify:

type(“service”), fromRelationShip.calls(type(“service”), toRelationships.isNamespaceOfService(type(“CLOUD_APPLICATION_NAMESPACE”), namespaceName(“<NAMESPACE NAME>”)))

Or if you have more clusters with the same namespace you can add also the relation to cluster with specific name:

type(“service”), fromRelationShip.calls(type(“service”), toRelationships.isNamespaceOfService(type(“CLOUD_APPLICATION_NAMESPACE”), namespaceName(“<NAMESPACE NAME>”), toRelationShip.isClusterOfNamespace(type(“KUBERNETES_CLUSTER”), customizedName(“<CLUSTER NAME IN DT>”))))