update cAdvisor to v0.37.0
This commit is contained in:
5
vendor/github.com/google/cadvisor/resctrl/manager.go
generated
vendored
5
vendor/github.com/google/cadvisor/resctrl/manager.go
generated
vendored
@@ -18,6 +18,8 @@
|
||||
package resctrl
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/google/cadvisor/stats"
|
||||
|
||||
"github.com/opencontainers/runc/libcontainer/intelrdt"
|
||||
@@ -29,6 +31,9 @@ type manager struct {
|
||||
}
|
||||
|
||||
func (m manager) GetCollector(resctrlPath string) (stats.Collector, error) {
|
||||
if _, err := os.Stat(resctrlPath); err != nil {
|
||||
return &stats.NoopCollector{}, err
|
||||
}
|
||||
collector := newCollector(m.id, resctrlPath)
|
||||
return collector, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user