ignore udp metrics in k8s

pull/6/head
David Ashpole 2017-07-31 10:40:13 -07:00
parent 4a73f19aed
commit 376b5f8079
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func New(address string, port uint, runtime string, rootPath string) (Interface,
sysFs := sysfs.NewRealSysFs() sysFs := sysfs.NewRealSysFs()
// Create and start the cAdvisor container manager. // 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 { if err != nil {
return nil, err return nil, err
} }