iwankgb
a470ec166c
Some linting errors ( #2532 )
...
* Fixing number of linting errors
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-05-04 10:01:35 -07:00
Katarzyna Kujawa
09c98f59a9
Remove go-cmp from from cache comparison
...
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-29 11:55:43 +02:00
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
iwankgb
0dd4098374
golanci-lint based cleanup ( #2503 )
...
* Cleanups based on linter
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-20 10:53:19 -07:00
David Ashpole
ca7a1173b7
Merge pull request #2478 from dims/switch-to-klog-v2
...
Switch to klog v2
2020-04-10 09:13:38 -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
Davanum Srinivas
94508e8a2f
Switch to klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-09 22:54:37 -04: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
Ted Yu
f6e5433e67
Check the error return from GetCPUPhysicalPackageID()
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-06 16:50:53 -07: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
Davanum Srinivas
af89abfc29
Cleanup unused code
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-24 15:41:02 -04: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
NickrenREN
a248c34528
optimize NewRealSysFs()
...
remove second return value since it will never return err
2017-03-15 12:11:50 +08:00
Jimmi Dyson
d1fce20304
Regexp tidy up
2015-11-26 09:14:26 +00:00
Victor Marmol
b923eff11c
Expose multiple network interfaces in API.
...
Part of #686
2015-06-07 17:01:53 -07:00
Federico Simoncelli
02a3e46996
Add system uuid and machine id information
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-01 15:06:19 -05: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
Victor Marmol
8f0f2299ab
Make network fields signed integers.
...
The kernel reports -1 in case of errors so it should be an allowable
returned value.
Fixes #454 .
2015-01-20 22:34:10 -08: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