Commit 2df9d16a authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #28173 from ronnielai/inode-summary-dep

Automatic merge from submit-queue Includes the number of free inodes in stat summary #21546
parents d499d65b e5f8cd99
......@@ -173,6 +173,8 @@ type FsStats struct {
// 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.
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.
......
......@@ -124,13 +124,15 @@ func (sb *summaryBuilder) build() (*stats.Summary, error) {
Fs: &stats.FsStats{
AvailableBytes: &sb.rootFsInfo.Available,
CapacityBytes: &sb.rootFsInfo.Capacity,
UsedBytes: &sb.rootFsInfo.Usage},
UsedBytes: &sb.rootFsInfo.Usage,
InodesFree: &sb.rootFsInfo.InodesFree},
StartTime: rootStats.StartTime,
Runtime: &stats.RuntimeStats{
ImageFs: &stats.FsStats{
AvailableBytes: &sb.imageFsInfo.Available,
CapacityBytes: &sb.imageFsInfo.Capacity,
UsedBytes: &sb.imageStats.TotalStorageBytes,
InodesFree: &sb.imageFsInfo.InodesFree,
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment