HostOutOfDiskSpace Clarification

14 views
Skip to first unread message

Deeraj V

unread,
Apr 29, 2022, 3:24:30 AM4/29/22
to Prometheus Users
Hello Team,
I would like to raise alerts when host is out of disk, i am using following Expression for evaluation.

(node_filesystem_avail_bytes{job="kubernetes-service-endpoints"} * 100) / (node_filesystem_size_bytes{job="kubernetes-service-endpoints"}) < 10  ,

But my my host has ceph storage as separate drive, but these drive i m unable to evaluate the usage with above expression.

In the above expression i can see only host level disk usage evaluation , even i am getting alert on those.

Is there any way to find expression for ceph drives usage? 

Note:, I have work around for this , I tried with getting usage with following expression 
expr: max(container_fs_usage_bytes{device=~"/dev/.*"}/container_fs_limit_bytes{device=~"/dev/.*"}*100) by(cluster,instance,device)  > 75 < 90

I knew its not valid expression, this will evaluate file usage of container.

Do you have any idea on this? 

Thanks in advance if anybody has implemented so far.

Thanks
DV
Reply all
Reply to author
Forward
0 new messages