NIXStats / nixstatsagent

NIXStats monitoring agent
https://www.nixstats.com
Other
92 stars 38 forks source link

Ignore /snap/* mounts #52

Open stayallive opened 2 years ago

stayallive commented 2 years ago

Is it possible to configure the agent to ignore snap mounts since they are always 100% full and are useless to see in the stats :)

I checked the diskusage plugin but saw no configurable option to do it myself I believe.

df -h output:

Filesystem                         Size  Used Avail Use% Mounted on
udev                               7.8G     0  7.8G   0% /dev
tmpfs                              1.6G  1.3M  1.6G   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  313G   25G  273G   9% /
tmpfs                              7.9G   16K  7.9G   1% /dev/shm
tmpfs                              5.0M   32K  5.0M   1% /run/lock
tmpfs                              7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/vda2                          976M  207M  703M  23% /boot
/dev/loop1                          56M   56M     0 100% /snap/core18/2284
/dev/loop0                          56M   56M     0 100% /snap/core18/2128
/dev/loop2                          71M   71M     0 100% /snap/lxd/21029
/dev/loop3                          68M   68M     0 100% /snap/lxd/21835
/dev/loop5                          62M   62M     0 100% /snap/core20/1328
/dev/loop7                          44M   44M     0 100% /snap/snapd/14978
/dev/loop4                          62M   62M     0 100% /snap/core20/1361
tmpfs                              1.6G     0  1.6G   0% /run/user/0

Result in nixstats:

image