Commit Graph

12 Commits

Author SHA1 Message Date
iwankgb
854445c010
Carefully fixing style (#2509)
* Use golangci-lint to add lint presubmit test, and fix linter errors

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-22 16:26:36 -07:00
David Ashpole
f72e6ae382
Merge pull request #2448 from dims/docker-based-integration-test
Docker based integration test for cadvisor
2020-04-10 09:04:21 -07:00
bblu
7f1ea45122 Issue fix: get wrong machine info in Arm64 guest
The latest kubernetes deployment on Arm64 VM-s always fails.
Because k8s always get num_cores=0 from cAdvisor on Arm64 VM-s.

The reason is that, there is no cache info on Arm64 VM-s.
And the good news is that, we can get cache info on Arm64 hosts.

When this patch was merged, I will deliver a patch to update the version
of cAdvisor in kubernetes as soon as possible.

Signed-off-by: bblu <bin.lu@arm.com>
2020-04-09 14:01:45 +08:00
Davanum Srinivas
831b5000c2
fix test to ensure nodes are sorted
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-06 20:30:24 -04:00
Katarzyna Kujawa
6536a6c35e Fix number of logical CPU cores when nodes are not available
Add reading CPU topology without nodes

Add test for reading CPU topology without nodes

Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-06 17:42:24 +02:00
Katarzyna Kujawa
c5a9232a94 Modify GetTopology to read information only from sysfs
* Move sysfs related functions needed to get nodes' information and tests into utils/sysfs
* Add tests for sysfs related functions

Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-03-17 08:44:58 +01:00
Victor Marmol
b923eff11c Expose multiple network interfaces in API.
Part of #686
2015-06-07 17:01:53 -07:00
Rohit Jnagal
872546ba3a Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
Rohit Jnagal
aa398c800a Add scheduler type to disk info.
Type can be one of "none", "noop", "deadline", "cfq".
For block devices that don't use scheduler (like dm), the type will be "none".
We'll also report "none" for partitions when we start reporting those.
2015-01-17 00:09:07 +00:00
Rohit Jnagal
3780075bad Handle root network device names other than eth.
New logic ignores veth, docker, and loopback devices.
2015-01-14 22:28:59 +00:00
Rohit Jnagal
45334c6f71 Add network stats to root container. Provides machine-level networking stats. 2014-12-30 17:12:42 +00:00
Rohit Jnagal
3836d1e2ec Refactor common methods out of sysfs package and add tests. 2014-12-29 17:09:27 +00:00