Skip to content

Commit

Permalink
update cadvisor godeps and ignore per-cpu metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Feb 22, 2018
1 parent a4222bd commit 65394fe
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 94 deletions.
172 changes: 86 additions & 86 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pkg/kubelet/cadvisor/cadvisor_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ func containerLabels(c *cadvisorapi.ContainerInfo) map[string]string {
func New(address string, port uint, imageFsInfoProvider ImageFsInfoProvider, rootPath string, usingLegacyStats bool) (Interface, error) {
sysFs := sysfs.NewRealSysFs()

ignoreMetrics := cadvisormetrics.MetricSet{cadvisormetrics.NetworkTcpUsageMetrics: struct{}{}, cadvisormetrics.NetworkUdpUsageMetrics: struct{}{}}
ignoreMetrics := cadvisormetrics.MetricSet{
cadvisormetrics.NetworkTcpUsageMetrics: struct{}{},
cadvisormetrics.NetworkUdpUsageMetrics: struct{}{},
cadvisormetrics.PerCpuUsageMetrics: struct{}{},
}
if !usingLegacyStats {
ignoreMetrics[cadvisormetrics.DiskUsageMetrics] = struct{}{}
}
Expand Down
1 change: 1 addition & 0 deletions vendor/github.com/google/cadvisor/container/factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion vendor/github.com/google/cadvisor/metrics/prometheus.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65394fe

Please sign in to comment.