Commit Graph

19 Commits

Author SHA1 Message Date
NickrenREN
a248c34528 optimize NewRealSysFs()
remove second return value since it will never return err
2017-03-15 12:11:50 +08:00
shahidhs-ibm
305bb279d8 gofmt changes (new)
Formatting in 'utils/machine/machine.go' and
'utils/sysfs/sysfs.go' was incorrect and causing ./build/presubmit.sh
script to fail in Travis giving below error:
The following files are not properly formatted:
$ ./build/presubmit.sh
+./build/check_gofmt.sh .
utils/machine/machine.go utils/sysfs/sysfs.go utils/machine/machine.go
utils/sysfs/sysfs.go

Fixed the formatting using below command:
gofmt -l -w -s utils/sysfs/sysfs.go
gofmt -l -w -s utils/machine/machine.go
2015-10-19 17:13:09 +05:30
shahidhs-ibm
be8de942e7 Revert "gofmt changes"
This reverts commit c4a523adb9.
2015-10-19 17:01:41 +05:30
shahidhs
c4a523adb9 gofmt changes
Looks like formatting in 'utils/machine/machine.go' and
'utils/sysfs/sysfs.go' was incorrect and causing ./build/presubmit.sh
script to fail in Travis giving below error:
The following files are not properly formatted:
$ ./build/presubmit.sh
+./build/check_gofmt.sh .
utils/machine/machine.go utils/sysfs/sysfs.go utils/machine/machine.go
utils/sysfs/sysfs.go

Fixed the formatting using below command:
gofmt -l -w -s utils/sysfs/sysfs.go
gofmt -l -w -s utils/machine/machine.go
2015-10-19 16:07:20 +05:30
Shahid
259e42d118 Update sysfs.go 2015-10-05 21:10:58 +05:30
Shahid
bfa8c9378c Update sysfs.go 2015-09-02 13:07:40 +05:30
Pradipta Kr. Banerjee
d88ed0ab97 Handle system UUID retrieval for Power(ppc64) Systems
This patch adds requisite support to retrieve system uuid details for Power
systems. Power systems do not have DMI data. However most of the relevant details
are either in /proc or /sys. For baremetal servers, the UID is available in
/proc/device-tree/system-id. For guests the UUID is available in
/proc/device-tree/vm,uuid inside the guest. Guest's /proc filesystem do not have
/proc/device-tree/system-id

Example
On baremetal system
$cat /proc/device-tree/system-id
2122AAA

On a guest VM
$cat /proc/device-tree/vm,uuid
4b1a1a7e-079e-479c-8072-d8108f31050c

Signed-off-by: Pradipta Kr. Banerjee <bpradip@in.ibm.com>
2015-05-22 10:40:03 +05:30
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
Jihoon Chung
09aff7cb92 Filter out non-netdev entries in sysfs/class/net 2015-02-16 16:11:46 +09:00
Rohit Jnagal
9f9f8ad983 Use shared_cpu_map instead of shared_cpu_list to get cache hierarchy. 2015-02-07 16:24:19 +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
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
Rohit Jnagal
04fef734d2 Merge pull request #402 from rjnagal/diskinfo
Add ethernet devices information to machine endpoint.
2014-12-26 09:47:11 -08:00
Rohit Jnagal
496ee65cc2 Add ethernet devices information to machine endpoint. 2014-12-25 21:15:21 +00:00
Vish Kannan
2d58ee4643 Merge pull request #401 from rjnagal/docs
Skip ROM devices in disk map.
2014-12-25 12:41:07 -08:00
Rohit Jnagal
1f23693de8 Skip ROM devices in disk map. 2014-12-25 19:01:27 +00:00
Rohit Jnagal
5994c17b1e Add cache info to machine topology 2014-12-22 17:54:36 +00:00
Rohit Jnagal
e5200948f5 Add a disk map to machine info.
This is read once at start of cAdvisor. We can use this to report
machine state as well as return logical name for block devices in UI.

Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-12-17 00:15:50 +00:00