Hi Everyone,
I have specific requirement from the client that prometheus should generate alert in case any mount point on the server goes missing.
For Eg: If server has 3 mount points like /data1 /NFS1 /NFS2 and if by any reason ,/NFS2 gets delinked from the server in that case prometheus should generate alert.
When I tried with below query,it is working fine(as this metric goes missing when /NFS2 got delinked from the server)
absent(node_filesystem_readonly{device="XX:/NFS2",fstype="nfs2",hostname="EAST_WB_XX",instance="XX:9100",job="XX",mountpoint="/NFS2"}) == 1
However there are 800 servers which are required to get monitor therefore it is not possible to add 800 rules for each IP in the rules.yml.
When I add below rule,it didn't generate the missing alert.
absent(node_filesystem_readonly{mountpoint="/NFS2"}) == 1
Please advice if we can achieve this with some tweaking in the query so that it can be generic for all servers.
Looking forward for your response.
Thanks,
Saurabh