Commit Graph

518 Commits

Author SHA1 Message Date
shirou 134e15be26 Merge pull request #130 from sparrc/ibdnW
Add -W flag to netstat on BSD systems
2015-12-16 10:34:55 +09:00
shirou ff98b44420 Merge pull request #131 from yhat/cpu-race-condition-fix
CPU race condition fix
2015-12-16 10:32:49 +09:00
Ryan J. O'Neil 4d7275adf7 Rebrandoning back. 2015-12-15 16:19:20 -05:00
Ryan J. O'Neil 2434a327b9 Removing race condition in CPUPercent calculation. 2015-12-15 15:22:30 -05:00
Ryan J. O'Neil 1b9883dc76 Rebrandoning so we can patch this library and have it work in our Godeps. 2015-12-15 14:51:35 -05:00
Cameron Sparr 432bcbd056 Add -W flag to netstat on BSD systems
This prevents netstat from truncating the interface name to 5
characters. See https://github.com/influxdb/telegraf/issues/438
2015-12-15 08:27:15 -07:00
shirou de9cd47bb0 Merge pull request #127 from DataDog/fix-process-mem-unit-osx
process[darwin] Fix unit of RSS and VMS
2015-12-15 00:09:31 +09:00
shirou dc452207f2 Merge pull request #128 from ontsysmattholcomb/use-env-proto-counters
using HostProc for protocounters in linux
2015-12-14 21:44:25 +09:00
Olivier Vielpeau ec627e67ac process[darwin] Fix unit of RSS and VMS
Should be bytes, `ps` returns Kbytes.
2015-12-14 12:13:27 +01:00
shirou 76c6e2ccc8 Merge pull request #125 from okmeter/fix_net_io_counters_freebsd
[net] fix panic on freebsd (netstat error with exit code 0)
2015-12-12 21:55:18 +09:00
shirou 123e227491 Merge pull request #126 from sparrc/godoc-badge
Add a godoc badge
2015-12-12 20:26:47 +09:00
Cameron Sparr ec692ecfcf Add a godoc badge 2015-12-11 12:46:15 -07:00
Nikolay Sivko 906df3ed85 [net] fix panic on freebsd (netstat error with exit code 0) 2015-12-11 14:47:48 +03:00
Matt Holcomb 21ccfe6b60 using HostProc for protocounters in linux 2015-12-10 16:37:36 +00:00
shirou fc932d9090 Merge pull request #121 from jimmidyson/stat-brackets-process-name
Handle process filenames with spaces in the name
2015-12-07 23:41:47 +09:00
Jimmi Dyson 7e4cef7a30 Handle process filenames with spaces in the name
Fixes #120
2015-12-07 09:27:07 +00:00
Shirou WAKAYAMA 759e96ebaf Merge branch 'master' of github.com:shirou/gopsutil 2015-12-01 23:30:02 +09:00
Shirou WAKAYAMA 223c809234 disk[unix]: revert 61cb121. psutil uses Available as Free. 2015-12-01 23:29:15 +09:00
shirou 59c2eff5e8 Merge pull request #118 from okmeter/fix_disk_freebsd386
[disk] fix build for freebsd 386
2015-11-25 21:38:56 +09:00
Nikolay Sivko 46c34a9d1e [disk] fix build for freebsd 386 2015-11-25 13:16:35 +03:00
shirou 91e273aef0 Merge pull request #115 from okmeter/fix_swap_freebsd
[freebsd] fix SwapMemory for hosts without swap
2015-11-25 16:53:52 +09:00
Nikolay Sivko 075839d9f1 fix imports 2015-11-25 10:50:51 +03:00
shirou 3c39329606 Merge pull request #116 from okmeter/freebsd_proc_info
process[freebsd]: Cmdline, IOCounters, CPUTimes implemented
2015-11-25 16:49:21 +09:00
Nikolay Sivko 45dcaa3b91 process[freebsd]: Cmdline, IOCounters, CPUTimes implemented 2015-11-24 17:43:31 +03:00
Nikolay Sivko d4e648e253 [freebsd] fix SwapMemory for hosts without swap 2015-11-24 17:37:01 +03:00
shirou d49c4afc40 Merge pull request #96 from shirou/process/fix_openfiles
process[linux]: implements OpenFiles.
2015-11-24 09:54:43 +09:00
shirou 2d297dfb74 Merge pull request #113 from shirou/add_process_children
process[linux,freebsd,darwin]: implements Children using pgrep.
2015-11-24 09:52:59 +09:00
WAKAYAMA shirou 54a6c186c1 host[freebsd]: BREAKING CHANGE. Boottime() should return uint64 same as other. 2015-11-24 09:48:05 +09:00
Shirou WAKAYAMA 0afd653fab host[all]: fix #114 String() issue. 2015-11-24 09:30:17 +09:00
shirou b114432fbb Merge pull request #114 from sparrc/uptime-fix
Fix HostInfo.Uptime, which has been returning boot time
2015-11-24 07:30:16 +09:00
Cameron Sparr 444ee723c3 Fix HostInfo.Uptime, which has been returning boot time
Also adding a HostInfo.BootTime field for holding the boot time
2015-11-23 13:18:59 -07:00
Shirou WAKAYAMA dd13300833 process[linux,freebsd,darwin]: implements Children using pgrep. 2015-11-24 00:04:20 +09:00
shirou dcbb29ae2d Merge pull request #110 from shirou/add_mems_to_docker
docker[linux]: add more memory stats in cgroup.
2015-11-23 09:47:39 +09:00
Shirou WAKAYAMA 40bbba9636 docker[linux]: add more memory stats in cgroup. 2015-11-21 23:00:37 +09:00
shirou 4e774eabc2 Merge pull request #109 from influxdb/nc-net-snmp
Add system wide network protocol stats
2015-11-21 22:05:02 +09:00
Nathaniel Cook da832b3f12 add system wide network protocol stats 2015-11-20 10:17:21 -07:00
shirou 4cd10805e9 Merge pull request #106 from cgeoffroy/docker/fix_hardcoded_path
docker: fix static /sys paths by using env variables
2015-11-13 09:33:56 +09:00
cgeoffroy 40f6755c6b docker: fix static /sys paths by using env variables 2015-11-12 13:53:18 +01:00
shirou b9ba9bfee8 Merge pull request #105 from kardianos/fix_cores
cpu: CPUInfo returns one item per physical thread.
2015-10-23 11:13:37 +09:00
Daniel Theophanes fa7f8ba4e8 cpu: CPUInfo returns one item per physical thread. Fix "Cores" to 1 on Linux.
Fixes #104
2015-10-22 09:43:45 -07:00
shirou 127599b2cf Merge pull request #103 from kardianos/cpu_test
Cpu test
2015-10-20 08:09:01 +09:00
Daniel Theophanes bc6481f7e0 Merge branch 'master' of https://github.com/shirou/gopsutil into cpu_test 2015-10-19 08:46:06 -07:00
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 2015-10-20 00:04:57 +09:00
shirou 72109c3d21 Merge pull request #102 from kardianos/common_internal
Common internal
2015-10-19 23:53:24 +09:00
shirou e7d2b34f97 Merge pull request #98 from kardianos/cpu_arm
cpu: support ARM CPUs.
2015-10-19 13:36:30 +09:00
Daniel Theophanes 726e7c6406 cpu: fix cpu test on small ARM device where CPU can be at 100%+rounding.
Fixes #99
2015-10-18 20:53:01 -07:00
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
2015-10-18 20:40:01 -07:00
Daniel Theophanes 69221741e8 cpu: allow override of /sys dir. Fix CPUInfo /proc + cpuinfo combine. 2015-10-18 09:46:21 -07:00
Daniel Theophanes ab2cba55ee Merge branch 'master' of https://github.com/shirou/gopsutil into cpu_arm 2015-10-18 09:29:54 -07:00
shirou 1e9aabb3c8 Merge pull request #97 from jchauncey/issue-94
chore(*): Fixes #94
2015-10-19 00:11:08 +09:00