File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import (
24
24
25
25
inotify "k8s.io/utils/inotify"
26
26
27
+ "github.com/google/cadvisor/container"
27
28
"github.com/google/cadvisor/container/common"
28
29
"github.com/google/cadvisor/container/libcontainer"
29
30
"github.com/google/cadvisor/watcher"
@@ -42,8 +43,8 @@ type rawContainerWatcher struct {
42
43
stopWatcher chan error
43
44
}
44
45
45
- func NewRawContainerWatcher () (watcher.ContainerWatcher , error ) {
46
- cgroupSubsystems , err := libcontainer .GetCgroupSubsystems (nil )
46
+ func NewRawContainerWatcher (includedMetrics container. MetricSet ) (watcher.ContainerWatcher , error ) {
47
+ cgroupSubsystems , err := libcontainer .GetCgroupSubsystems (includedMetrics )
47
48
if err != nil {
48
49
return nil , fmt .Errorf ("failed to get cgroup subsystems: %v" , err )
49
50
}
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ func (m *manager) Start() error {
295
295
klog .Errorf ("Registration of the raw container factory failed: %v" , err )
296
296
}
297
297
298
- rawWatcher , err := raw .NewRawContainerWatcher ()
298
+ rawWatcher , err := raw .NewRawContainerWatcher (m . includedMetrics )
299
299
if err != nil {
300
300
return err
301
301
}
You can’t perform that action at this time.
0 commit comments