# Timeseries of service request count sum by host

**URL:** <https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed\
**Created:** [August 26, 2025, 3:41pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108 "2025-08-26T15:41:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![imrj99](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imrj99/32/21367_2.png) [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Post date:** [August 26, 2025, 3:41pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/1 "2025-08-26T15:41:25Z")

</div>

I would like to have a timeseries that includes the sum of total requests count by host, very similar to the post below, but w/o the service name, and the count summed up by hosts (i will pull in hosts from a mgmtzone variable)

[https://community.dynatrace.com/t5/DQL/Service-request-counts-per-host-server/td-p/281087](https://community.dynatrace.com/topic/281087)

---

<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 26, 2025, 4:17pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/2 "2025-08-26T16:17:30Z")

</div>

You can’t do this with the built-in service metrics (service metrics are already aggregated and do not contain host dimension), but you can grab it from spans:

```markup
fetch spans
| filter span.kind=="server"
| makeTimeseries count(), by:{host.name}

```

or create your own metric in OpenPipeline for spans.

Just take into account that not all spans must be captured (sampling / adaptive traffic management), so you might see lower values than the actual count.

---

<div class="post-metadata">

**Author:** ![imrj99](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imrj99/32/21367_2.png) [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Post date:** [August 26, 2025, 6:46pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/3 "2025-08-26T18:46:09Z")

</div>

so there is no way i could sum up the counts for each unique host? am afraid with spans am going to get a lot of other things than just specific service request counts

what am looking for is exactly like this screenshot below, but removing the service name and just sum the service request counts at the unique host level

 ![0-1752205858109.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4f0ef66169bca47d680d3c6ccb03ceab4cc91fcb.png)

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [August 26, 2025, 7:07pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/4 "2025-08-26T19:07:28Z")

</div>

just add this at the end of this current DQL you have for this table

|summarize sum(Request Count), by:{Host Name}

replacing the respective Request Count and Host Name fields by the one you have in your query.

---

<div class="post-metadata">

**Author:** ![imrj99](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imrj99/32/21367_2.png) [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Post date:** [August 26, 2025, 7:21pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/5 "2025-08-26T19:21:07Z")

</div>

sweet deal, that worked perfectly! thanks

---

<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 26, 2025, 8:54pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/6 "2025-08-26T20:54:22Z")

</div>

[@imrj99](https://community.dynatrace.com/user/73678)&nbsp;If you grabbed the DQL from the referenced thread, then this will work only for services which have one instance (one host).&nbsp; There is no way of doing from dt.service.request.count metric for process groups which have more than one instance.

---

<div class="post-metadata">

**Author:** ![imrj99](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imrj99/32/21367_2.png) [@imrj99](https://community.dynatrace.com/u/imrj99)\
**Post date:** [August 27, 2025, 12:13pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/7 "2025-08-27T12:13:18Z")

</div>

yup you are correct indeed, I noticed that shortly after, only a few hosts are coming up on the query and its for exactly the reason you mentioned. so spans must be the only way then…

---

<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 27, 2025, 12:48pm UTC](https://community.dynatrace.com/t/timeseries-of-service-request-count-sum-by-host/53108/8 "2025-08-27T12:48:34Z")

</div>

[@imrj99](https://community.dynatrace.com/user/73678)&nbsp;spans are the way if you need to see it for some analysis. For dashboards, create a metric in OpenPipeline span pipeline to calculate it.
