Dashboarding
Dynatrace dashboards, notebooks, and data explorer explained.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calling Service to a specific namespace.

Vikas_g1997
Dynatrace Organizer
Dynatrace Organizer

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

4 REPLIES 4

lubrman
Mentor

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

 

Vikas_g1997
Dynatrace Organizer
Dynatrace Organizer

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 .

Vikas_g1997_0-1765804298840.png

 

 

lubrman
Mentor

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.

https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v...

PetrVlacil
Observer

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

Featured Posts