# I think that builtin:host.disk.usedPct metric is wrong because the total space metric is wrong.

**URL:** <https://community.dynatrace.com/t/i-think-that-builtin-host-disk-usedpct-metric-is-wrong-because-the-total-space-metric-is-wrong/44687>\
**Category:** Alerting\
**Tags:** disks, anomaly-detection, problems-classic\
**Created:** [March 15, 2024, 11:37am UTC](https://community.dynatrace.com/t/i-think-that-builtin-host-disk-usedpct-metric-is-wrong-because-the-total-space-metric-is-wrong/44687 "2024-03-15T11:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![itamarmesa](https://avatars.discourse-cdn.com/v4/letter/i/3ec8ea/32.png) [@itamarmesa](https://community.dynatrace.com/u/itamarmesa)\
**Post date:** [March 15, 2024, 11:37am UTC](https://community.dynatrace.com/t/i-think-that-builtin-host-disk-usedpct-metric-is-wrong-because-the-total-space-metric-is-wrong/44687/1 "2024-03-15T11:37:33Z")

</div>

Seeing directly the sizes of a mounted point of a disk in my host, it gives me some stats:

84.17% used disk space,

2,412383548915386 TiB disk used (2652443762688 bytes / 1024 / 1024 / 1024 /1024)

2,86578132212162 TiB disk used (3150959886336 bytes / 1024 / 1024 / 1024 /1024)

 ![itamarmesa_0-1710501909593.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/96e882e41e6f2285f1d9f1584838a4f1d2d5b62b.png)

While in Dynatrace, the same disk using the builtin metric:

(builtin:host.disk.usedPct:filter(and(or(in(“dt.entity.disk”,entitySelector(“type(disk),not(tag(~“WarningDisk:90~”))”)))),series(avg,and(ge(85),le(90)))):splitBy(“dt.entity.disk”,“dt.entity.host”):parents):filter(eq(“dt.entity.disk”,DiskA),eq(“dt.entity.host”,HostA))

gives me a 85.43%, which is wrong.

 ![itamarmesa_1-1710501983741.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/e/1e630956e8d0d60cec4b7a647a5513c532caf0b2.png)

Also, seeing the metrics in the host makes everything clear:

![itamarmesa_2-1710502138733.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/e/fe8cdaadc05cbf7a93960a3cebd648d98468ee97.png)

We can see that the pct calculation fails probably because the total space is wrong, because 2,41… / 2,82… TiB ~ 85,43%.

Why is this? Is it that the agent wrong? Is it that the total space calculation is wrong?

Thanks.

---

_[View the full topic](https://community.dynatrace.com/t/i-think-that-builtin-host-disk-usedpct-metric-is-wrong-because-the-total-space-metric-is-wrong/44687)._
