runtime: add pod overhead metrics

Add pod overhead metrics for CPU and memory to help with calculating sandbox overhead.

Fixes: #399

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu
2020-07-08 18:00:55 +08:00
parent 7eedc95de4
commit 0790ca4933
8 changed files with 250 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ type VCSandbox interface {
ID() string
SetAnnotations(annotations map[string]string) error
Stats() (SandboxStats, error)
Start() error
Stop(force bool) error
Release() error