Add free inode metric for Prometheus (#12225)

This commit is contained in:
Nitish Tiwari
2021-05-06 11:33:40 +05:30
committed by Harshavardhana
parent 2fd9c13b50
commit 776589f0da
6 changed files with 46 additions and 10 deletions

View File

@@ -471,6 +471,7 @@ func (s *xlStorage) DiskInfo(context.Context) (info DiskInfo, err error) {
dcinfo.Free = di.Free
dcinfo.Used = di.Used
dcinfo.UsedInodes = di.Files - di.Ffree
dcinfo.FreeInodes = di.Ffree
dcinfo.FSType = di.FSType
diskID, err := s.GetDiskID()