# Disk space specific to few servers and directories

**URL:** <https://community.dynatrace.com/t/disk-space-specific-to-few-servers-and-directories/46934>\
**Category:** Alerting\
**Tags:** disks\
**Created:** [August 1, 2024, 1:55am UTC](https://community.dynatrace.com/t/disk-space-specific-to-few-servers-and-directories/46934 "2024-08-01T01:55:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [August 5, 2024, 5:57am UTC](https://community.dynatrace.com/t/disk-space-specific-to-few-servers-and-directories/46934/10 "2024-08-05T05:57:37Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)&nbsp;,

You have to add this piece of code

**,in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“host~”)”))**

as many times as hosts want to add.

Ex:

builtin:host.disk.usedPct:filter(and(or(in(“dt.entity.disk”,entitySelector(“type(disk),entityName.in(~“path~”)”))),or(in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“host~”)”))**,in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“host~”)”))**))):splitBy(“dt.entity.host”,“dt.entity.disk”)

Regards,

Elena.

---

_[View the full topic](https://community.dynatrace.com/t/disk-space-specific-to-few-servers-and-directories/46934)._
