Commit Graph

1537 Commits (9473d01f0feef8530233305d7381a6b1cf2082c1)
 

Author SHA1 Message Date
shirou 9a4a9167ad Merge pull request #357 from ablagoev/fix-proc-net-dev-parsing
Improve /proc/net/dev parsing to include all edge cases
shirou 1f6e626a22 Merge pull request #353 from shirou/fix_352
[linux]host: change to use filepath.Join
Alexander Blagoev f7dd4f97c7 Improve /proc/net/dev parsing to include all edge cases
Alexander Blagoev 51e4fb77cf Add socket state to TCP connection key
Alexander Blagoev daaadd4f1e Optimize memory usage for net.Connections on Linux
Sean Chittenden 23a4ae3369
`gofmt -s -w .`
Sean Chittenden d0e40ff723
Fix issues reported by golint.
Sean Chittenden 3834908232
Improve Command() handling and signal handling for launched processes.
Shirou WAKAYAMA cdcb9bb2ed [linux] host: fix typo
WAKAYAMA Shirou 25d50d5bc3 [linux]host: change to use filepath.Join
shirou 70693b6a3d Merge pull request #351 from danielnelson/io-counters-for-names
Make IOCounters a variadic function
Daniel Nelson 3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
WAKAYAMA Shirou dfbb3e40da fix build bugs.
Shirou WAKAYAMA fee973abda [linux]host: fix HostTempreture func
shirou 8e36fe6d8f Merge pull request #334 from dotpy3/macos-linux-temperatures
Added temperatures sensors for macOS and Linux
shirou f5781cab54 Merge pull request #347 from danielnelson/io-counters-for-names
Add disk.IOCountersForNames function
Daniel Nelson ab6db76df1
Fix IOCountersForNames on darwin
Daniel Nelson 3f35f001da
Add disk.IOCountersForNames function
Operates like disk.IOCounters, but accepts an array of names to limit
the results.
WAKAYAMA Shirou e49a95f3d5 [host]darwin: PlatformInformation has been 5 values other is 4.
shirou 08ade552e3 Merge pull request #336 from rburchell/master
disk_darwin: Add support for IOCounters using IOKit
shirou a00fdd2cc0 Merge pull request #342 from jgillich/patch-1
clarify return value of cpu.Percent()
Jakob Gillich facb241c12 clarify return value of cpu.Percent()
Robin Burchell b327360349 disk_darwin: Add support for IOCounters using IOKit
shirou f18f7dcbae Merge pull request #338 from itnihao/patch-1
Add hostinfo Virtualization vmware
itnihao 490dbd4ea4 Add hostinfo Virtualization vmware
WAKAYAMA Shirou 3499dec5c0 [cpu]linux: handle hz values by tmm1
WAKAYAMA Shirou a63f1aeeec use Processor entry as model name fallback by @tmm1
shirou 423a8ff2a6 Merge pull request #335 from shirou/fix_282
cpu[linux]: ignore cpufreq/cpuinfo_max_freq error
Eric Gourlaouen 22aefb460a Replaced sys by HostSys
Added TemperatureStat string test
WAKAYAMA Shirou 36b408780c cpu[linux]: ignore cpufreq/cpuinfo_max_freq error
Eric Gourlaouen 8b08ca5fdc added temperatures
shirou 98d5de7ce9 Merge pull request #332 from shirou/test_refactoring
refactoring
WAKAYAMA Shirou bad1ce0748 fix typo
WAKAYAMA Shirou 30ebb9ca3a rename expected dir to testdata.
WAKAYAMA Shirou f8ef680a47 error strings change to lowercase
shirou 4fb1a667c4 Merge pull request #331 from jen20/solaris-host
Host: Add Solaris support for Info(), BootTime(), Uptime()
James Nugent d19ac24a84 mem: Skip TestVirtual_memory on Solaris
James Nugent a34d626e17 Update README.rst for Solaris VirtualMemory support
James Nugent b7760bb5a6 memory: Add basic Solaris VirtualMemory() support
This commit adds support for VirtualMemory() in package mem. The support
only extends to total memory capcity, since that is all that is required
in Nomad. It does take into account global versus non-global zones, and
does not use cgo.

This has been tested inside a zone in the Joyent public cloud for a
non-global zone, and in the global zone of a SmartOS virtual machine.
James Nugent ae1d4ba818 Update README.md for Solaris package Host support
James Nugent 408005be94 host: Add Solaris support for Info, {Boot,Up}time
This commit adds support for Info(), BootTime() and Uptime() in package
Host. It uses no cgo, preferring to parse the output of `kstat -p`
instead.

Thanks go to @gfrey for the parsing logic for `/etc/release` and `uname`.
WAKAYAMA Shirou d8bc9ca755 fix README table.
shirou 6f1a489187 Merge pull request #330 from jen20/update-readme-solaris
Update README.rst to reflect addition of Solaris
James Nugent 43c8d3f5f9 Update README.rst to reflect addition of Solaris
shirou d4c8874c19 Merge pull request #328 from jen20/solaris-cpu
cpu: Implement Solaris support for Info()
James Nugent 49ed700c0d cpu: Implement Solaris support for Info()
This commit adds Solaris(^1) support for the Info() function of package
cpu, with the exception of the L2 cache size which is not trivially
available(^2).

Support is implemented by parsing the output of `isainfo -b -v` (for the
instruction set flags), and `psr-info -p -v` for other information.
Example outputs from a range of different size VMs and Joyent containers
are included as part of the tests.

(^1): This has only been tested with Illumos in the form of SmartOS. I
believe it to be portable to other Illumos distributions but have not
tested on Oracle Solaris.

(^2): Enough support is added here to be usable for my port of
HashiCorp's Nomad to SmartOS.
shirou 35e7422f01 Merge pull request #325 from simar7/cpu-microcode
cpu: Expose CPU microcode information
Simarpreet Singh 5a4c90ad5f cpu: Expose CPU microcode information
This commit exposes the CPU microcode information.

Signed-off-by: Simarpreet Singh <simar@opendns.com>
shirou 23f4b7eb14 Merge pull request #323 from molecul/patch-2
Fix for getMachineGuid() return value
Shirou WAKAYAMA 85d3530ae8 fix test.