# Metrics to show called services and called by request counts

**URL:** <https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer, dashboards\
**Created:** [August 29, 2023, 7:43am UTC](https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401 "2023-08-29T07:43:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnernest](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jnernest](https://community.dynatrace.com/u/jnernest)\
**Post date:** [August 29, 2023, 7:43am UTC](https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401/1 "2023-08-29T07:43:04Z")

</div>

Hi Team,

Currently we have lot of services(consider A,B,C) calling a particular services(X) we want to know the request count made by each services(A to X like wise B to X so..on) to be displayed on dashboard.

Can we use below option on metrics somehow?

 ![jnernest_1-1693294955680.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/0/108cc90405a3e697dc283bc1cbb3aac3f83caeae.png)

Thanks,  
Nathaniel J

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 29, 2023, 8:05am UTC](https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401/2 "2023-08-29T08:05:58Z")

</div>

Hi&nbsp;[@jnernest](https://community.dynatrace.com/user/58862)

In a utopian world you just need to click create metric&nbsp;🤗

 ![Yosi_Neuman_0-1693296221709.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/ddc0aa9f5c4911c180d3f883935cc840c5be7364.png)

How ever sadly, this is currently not available&nbsp;🤔

 ![Yosi_Neuman_1-1693296259430.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/6/96c1367882feaa53e329874184aed975eb7b1d96.png)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [August 4, 2025, 6:04am UTC](https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401/3 "2025-08-04T06:04:48Z")

</div>

Thanks for the input&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;  
Yeah there is an option but when we are trying to filter the service like **called service** and **called by service.** The metric is not getting created and shows the error you attached in your reply.

Is there any other way to solve this usecase, I tried using Calculated Service Metric&nbsp; but I didn’t find any option to select the called service and called by service.

---

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [August 4, 2025, 9:19am UTC](https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401/4 "2025-08-04T09:19:58Z")

</div>

This can be acheived by using **relationships** in Data Explorer. Thanks to&nbsp;[@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)&nbsp;for helping.

```java
builtin:service.requestCount.total
:filter(in("dt.entity.service",
  entitySelector(
    "type(SERVICE),entityName.equals(\"<CALLED-SERVICE>\"),toRelationship.CALLS(type(SERVICE),entityName.equals(\"<CALLING-SERVICE>\"))"
  )
))

```

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [August 4, 2025, 11:24am UTC](https://community.dynatrace.com/t/metrics-to-show-called-services-and-called-by-request-counts/41401/5 "2025-08-04T11:24:38Z")

</div>

[@zaid-bashir](https://community.dynatrace.com/user/79156)&nbsp;no, this is not answer to the question. In your case it will output **total** request count for services which are called from specific services and not just those requests originating from the service you have in the filter.

In SaaS this can be achieved with traces in grail functionality (e.g. fetch spans - with proper filtering)  
In Managed, you are mostly out of luck of having that on a dashboard, but sometimes it is possible to identify the originating service by some request attribute (e.g. specific http header for example). In that case it’s possible to use calculated service metrics.
