# Custom disk-detection rules: exclude a filesystem

**URL:** <https://community.dynatrace.com/t/custom-disk-detection-rules-exclude-a-filesystem/38404>\
**Category:** Open Q&A\
**Tags:** hosts-classic, settings, profiling-and-optimization\
**Created:** [February 12, 2023, 10:38am UTC](https://community.dynatrace.com/t/custom-disk-detection-rules-exclude-a-filesystem/38404 "2023-02-12T10:38:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [February 12, 2023, 10:38am UTC](https://community.dynatrace.com/t/custom-disk-detection-rules-exclude-a-filesystem/38404/1 "2023-02-12T10:38:15Z")

</div>

Dear All,

I have to exclude a filesystem. Therefore, I need to know about the following questions:

- Will the below rule exclude/not exclude the filesystem from the monitoring?
- Why do we have an alert and sample limit for the excluded filesystem?

 ![Babar_Qayyum_0-1676197989890.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9e7c485e899fbb1dd5140cd4f7e6cb39c81ca713.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 13, 2023, 12:17pm UTC](https://community.dynatrace.com/t/custom-disk-detection-rules-exclude-a-filesystem/38404/2 "2023-04-13T12:17:28Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;Looking at what you have set up I hope this clarifies the function.

**Alerting on:** Low Disk Space

**Alert if Disk Space is lower than:** 3%

**Alert if Disk Space is lower than 3% in:** 8 samples within a 10min period

**This Alert detection Criteria Applies to Host Disk names that:** Start with ‘/patrol’

**This Alert detection Criteria Applies to Host Disk names as defined above that also have hosts that include tags:** \<NONE\>

As a result, you will only be alerting on Disks that start with ‘/patrol’ while ignoring everything else for this rule.
