(((node_filesystem_size_bytes{job="exp-server-node",mountpoint=~".*",fstype=~"ext4|xfs|ext2|ext3|tmpfs"}-node_filesystem_free_bytes{job="exp-server-node",mountpoint=~".*",fstype=~"ext4|xfs|ext2|ext3|tmpfs"})/1024)*100)/((((node_filesystem_size_bytes{job="exp-server-node",mountpoint=~".*",fstype=~"ext4|xfs|ext2|ext3|tmpfs"}-node_filesystem_free_bytes{job="exp-server-node",mountpoint=~".*",fstype=~"ext4|xfs|ext2|ext3|tmpfs"})+node_filesystem_avail_bytes{job="exp-server-node",mountpoint=~".*",fstype=~"ext4|xfs|ext2|ext3|tmpfs"})/1024)+1)
如下图:
使用的计算公式:(node_filesystem_size_bytes - node_filesystem_free_bytes) * 100 / ((node_filesystem_size_bytes - node_filesystem_free_bytes + node_filesystem_avail_bytes) + 1)
标签:node,exporter,ext3,bytes,prometheus,ext4,filesystem,mountpoint From: https://blog.csdn.net/flyby_zhang/article/details/140926690