# Need to avoid mountpoint=/tmp/snap.rootfs\_xxxxx

**URL:** <https://discuss.prometheus.io/t/need-to-avoid-mountpoint-tmp-snap-rootfs-xxxxx/687>\
**Category:** General Help/Support\
**Created:** [January 5, 2022, 3:40am UTC](https://discuss.prometheus.io/t/need-to-avoid-mountpoint-tmp-snap-rootfs-xxxxx/687 "2022-01-05T03:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkdhanasekar](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tkdhanasekar](https://discuss.prometheus.io/u/tkdhanasekar)\
**Post date:** [January 5, 2022, 3:40am UTC](https://discuss.prometheus.io/t/need-to-avoid-mountpoint-tmp-snap-rootfs-xxxxx/687/1 "2022-01-05T03:40:45Z")

</div>

in my prometheus server / alert manager setup  
hdd alerts for a single server 163 alerts are firing for the mount points /tmp/snap.rootfs\_xxxxxx  
attached screenshot

 ![2](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/b2fa838af9b6f5151debef766d54a69aedf4aad5.png)

my alert rule is

- alert: HostOutOfDiskSpace  
expr: (node\_filesystem\_avail\_bytes \* 100) / node\_filesystem\_size\_bytes \< 15 and ON (instance, device, mountpoint) node\_filesystem\_readonly == 0  
for: 5m  
labels:  
severity: warning  
annotations:  
summary: Host out of disk space (instance {{ $labels.instance }})  
description: “Disk is almost full (\< 15% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}”

i tried delete mountpoint parameter in the above rule but of no use it triggers almost 163 alerts in single mail for all /tmp/snap.rootfs\_xxxx  
i need alert for mountpoint = / alone is enough but it triggers mountpoint = /tmp/snap.rootfs\_xxxxxx  
i want to avoid the alerts for mount points /tmp/snap.rootfs\_xxxxx and need to achieve  
single alert firing for HDD  
any suggestions in alert rule to achieve this

---

<div class="post-metadata">

**Author:** ![tkdhanasekar](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tkdhanasekar](https://discuss.prometheus.io/u/tkdhanasekar)\
**Post date:** [January 6, 2022, 6:04am UTC](https://discuss.prometheus.io/t/need-to-avoid-mountpoint-tmp-snap-rootfs-xxxxx/687/2 "2022-01-06T06:04:56Z")

</div>

expr: 100 - ((node\_filesystem\_avail\_bytes{mountpoint="/",fstype!=“tmpfs”} \* 100) / node\_filesystem\_size\_bytes{mountpoint="/",fstype!=“tmpfs”}) \> 85

by including fstype!=“tmpfs” in expr will fix the problem
