Apply pod name and namespace labels for pod cgroup for cadvisor metrics

This commit is contained in:
Derek Carr
2018-05-03 16:08:25 -04:00
parent 592c39bccc
commit a09990cd43
10 changed files with 223 additions and 31 deletions

View File

@@ -84,6 +84,10 @@ type StatsProvider interface {
// GetPodCgroupRoot returns the literal cgroupfs value for the cgroup containing all pods
GetPodCgroupRoot() string
// GetPodByCgroupfs provides the pod that maps to the specified cgroup literal, as well
// as whether the pod was found.
GetPodByCgroupfs(cgroupfs string) (*v1.Pod, bool)
}
type handler struct {