Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2df9d16a
Commit
2df9d16a
authored
Jul 01, 2016
by
k8s-merge-robot
Committed by
GitHub
Jul 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
types.go
pkg/kubelet/api/v1alpha1/stats/types.go
+2
-0
summary.go
pkg/kubelet/server/stats/summary.go
+3
-1
No files found.
pkg/kubelet/api/v1alpha1/stats/types.go
View file @
2df9d16a
...
...
@@ -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.
...
...
pkg/kubelet/server/stats/summary.go
View file @
2df9d16a
...
...
@@ -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
,
},
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment