UPSTREAM: 49885: Ignore UDP metrics in kubelet
@@ -105,7 +105,7 @@ func New(port uint, imageFsInfoProvider ImageFsInfoProvider, rootPath string) (I
sysFs := sysfs.NewRealSysFs()
// Create and start the cAdvisor container manager.
- m, err := manager.New(memory.New(statsCacheDuration, nil), sysFs, maxHousekeepingInterval, allowDynamicHousekeeping, cadvisormetrics.MetricSet{cadvisormetrics.NetworkTcpUsageMetrics: struct{}{}}, http.DefaultClient)
+ m, err := manager.New(memory.New(statsCacheDuration, nil), sysFs, maxHousekeepingInterval, allowDynamicHousekeeping, cadvisormetrics.MetricSet{cadvisormetrics.NetworkTcpUsageMetrics: struct{}{}, cadvisormetrics.NetworkUdpUsageMetrics: struct{}{}}, http.DefaultClient)
if err != nil {
return nil, err
}
