Includes the number of free indoes in summary
This commit is contained in:
		@@ -173,6 +173,8 @@ type FsStats struct {
 | 
				
			|||||||
	// This may differ from the total bytes used on the filesystem and may not equal CapacityBytes - AvailableBytes.
 | 
						// This may differ from the total bytes used on the filesystem and may not equal CapacityBytes - AvailableBytes.
 | 
				
			||||||
	// e.g. For ContainerStats.Rootfs this is the bytes used by the container rootfs on the filesystem.
 | 
						// e.g. For ContainerStats.Rootfs this is the bytes used by the container rootfs on the filesystem.
 | 
				
			||||||
	UsedBytes *uint64 `json:"usedBytes,omitempty"`
 | 
						UsedBytes *uint64 `json:"usedBytes,omitempty"`
 | 
				
			||||||
 | 
						// InodesFree represents the free inodes in the filesystem.
 | 
				
			||||||
 | 
						InodesFree *uint64 `json:"inodesFree,omitempty"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// UserDefinedMetricType defines how the metric should be interpreted by the user.
 | 
					// UserDefinedMetricType defines how the metric should be interpreted by the user.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -124,13 +124,15 @@ func (sb *summaryBuilder) build() (*stats.Summary, error) {
 | 
				
			|||||||
		Fs: &stats.FsStats{
 | 
							Fs: &stats.FsStats{
 | 
				
			||||||
			AvailableBytes: &sb.rootFsInfo.Available,
 | 
								AvailableBytes: &sb.rootFsInfo.Available,
 | 
				
			||||||
			CapacityBytes:  &sb.rootFsInfo.Capacity,
 | 
								CapacityBytes:  &sb.rootFsInfo.Capacity,
 | 
				
			||||||
			UsedBytes:      &sb.rootFsInfo.Usage},
 | 
								UsedBytes:      &sb.rootFsInfo.Usage,
 | 
				
			||||||
 | 
								InodesFree:     &sb.rootFsInfo.InodesFree},
 | 
				
			||||||
		StartTime: rootStats.StartTime,
 | 
							StartTime: rootStats.StartTime,
 | 
				
			||||||
		Runtime: &stats.RuntimeStats{
 | 
							Runtime: &stats.RuntimeStats{
 | 
				
			||||||
			ImageFs: &stats.FsStats{
 | 
								ImageFs: &stats.FsStats{
 | 
				
			||||||
				AvailableBytes: &sb.imageFsInfo.Available,
 | 
									AvailableBytes: &sb.imageFsInfo.Available,
 | 
				
			||||||
				CapacityBytes:  &sb.imageFsInfo.Capacity,
 | 
									CapacityBytes:  &sb.imageFsInfo.Capacity,
 | 
				
			||||||
				UsedBytes:      &sb.imageStats.TotalStorageBytes,
 | 
									UsedBytes:      &sb.imageStats.TotalStorageBytes,
 | 
				
			||||||
 | 
									InodesFree:     &sb.imageFsInfo.InodesFree,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user