collect metrics on the /kubepods cgroup on-demand

This commit is contained in:
David Ashpole
2018-02-16 14:53:44 -08:00
parent 1a6a01ee79
commit 960856f4e8
17 changed files with 198 additions and 155 deletions

View File

@@ -211,6 +211,11 @@ func (kl *Kubelet) GetNodeConfig() cm.NodeConfig {
return kl.containerManager.GetNodeConfig()
}
// GetPodCgroupRoot returns the listeral cgroupfs value for the cgroup containing all pods
func (kl *Kubelet) GetPodCgroupRoot() string {
return kl.containerManager.GetPodCgroupRoot()
}
// GetHostIP returns host IP or nil in case of error.
func (kl *Kubelet) GetHostIP() (net.IP, error) {
node, err := kl.GetNode()