# Inventory Rule - Disk Usage

**URL:** <https://discuss.elastic.co/t/inventory-rule-disk-usage/359195>\
**Category:** Elastic Observability\
**Tags:** elastic-stack-alerting\
**Created:** [May 9, 2024, 2:40pm UTC](https://discuss.elastic.co/t/inventory-rule-disk-usage/359195 "2024-05-09T14:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [May 9, 2024, 2:40pm UTC](https://discuss.elastic.co/t/inventory-rule-disk-usage/359195/1 "2024-05-09T14:40:24Z")

</div>

Hello,

how do you monitor disk usage when there are different mount points per device? Using the inventory rule, I can do the average of disk usage but it seems to calculate the average of all the mount points. Is there a better approach for this?

---

<div class="post-metadata">

**Author:** ![amo1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@amo1](https://discuss.elastic.co/u/amo1)\
**Post date:** [May 16, 2024, 8:40am UTC](https://discuss.elastic.co/t/inventory-rule-disk-usage/359195/2 "2024-05-16T08:40:08Z")

</div>

Hey Erik,

I've been trying to get this to work as well. I've been able to create alerts by:  
Condition - system.filesystem.used.pct  
Group alerts by - host.hostname and system.filesystem.mount\_point

This is made for Linux devices, not sure if it is the same mappings for Windows.

Edit: I was not able to get alerts to recover when i created a Metric Rule described above, but when I created a 'Custom threshold rule' instead (using the same data view and fields I described above), I was able to make the alert to recover! I feel that disk alerts should be out-of-the box like memory and CPU usage, but that's another discussion.

-Adrian

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [May 16, 2024, 1:21pm UTC](https://discuss.elastic.co/t/inventory-rule-disk-usage/359195/3 "2024-05-16T13:21:42Z")

</div>

Thanks! @amo1

Yes exactly it should be out-of-the box !
