update cAdvisor godeps to v0.34.0 release

This commit is contained in:
David Ashpole
2019-08-30 10:31:03 -07:00
parent afa979c295
commit 5420d84160
6 changed files with 49 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ import (
)
var dockerOnly = flag.Bool("docker_only", false, "Only report docker containers in addition to root stats")
var disableRootCgroupStats = flag.Bool("disable_root_cgroup_stats", false, "Disable collecting root Cgroup stats")
type rawFactory struct {
// Factory for machine information.

View File

@@ -227,6 +227,9 @@ func (self *rawContainerHandler) getFsStats(stats *info.ContainerStats) error {
}
func (self *rawContainerHandler) GetStats() (*info.ContainerStats, error) {
if *disableRootCgroupStats && isRootCgroup(self.name) {
return nil, nil
}
stats, err := self.libcontainerHandler.GetStats()
if err != nil {
return stats, err