Commit Graph

620 Commits (v1)
 

Author SHA1 Message Date
Ryan J. O'Neil 2434a327b9 Removing race condition in CPUPercent calculation. 9 years ago
Ryan J. O'Neil 1b9883dc76 Rebrandoning so we can patch this library and have it work in our Godeps. 9 years ago
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
9 years ago
shirou de9cd47bb0 Merge pull request #127 from DataDog/fix-process-mem-unit-osx
process[darwin] Fix unit of RSS and VMS
9 years ago
shirou dc452207f2 Merge pull request #128 from ontsysmattholcomb/use-env-proto-counters
using HostProc for protocounters in linux
9 years ago
Olivier Vielpeau ec627e67ac process[darwin] Fix unit of RSS and VMS
Should be bytes, `ps` returns Kbytes.
9 years ago
shirou 76c6e2ccc8 Merge pull request #125 from okmeter/fix_net_io_counters_freebsd
[net] fix panic on freebsd (netstat error with exit code 0)
9 years ago
shirou 123e227491 Merge pull request #126 from sparrc/godoc-badge
Add a godoc badge
9 years ago
Cameron Sparr ec692ecfcf Add a godoc badge 9 years ago
Nikolay Sivko 906df3ed85 [net] fix panic on freebsd (netstat error with exit code 0) 9 years ago
Matt Holcomb 21ccfe6b60 using HostProc for protocounters in linux 9 years ago
James Lamb a9e946c7dd change the snakecase to reflect the files being read 9 years ago
James Lamb 5700150054 Updated README.rst and included updated syntax to be more uniform with the other code 9 years ago
James Lamb 001ff20588 Merge branch 'master' into add_netfilter 9 years ago
James Lamb 22f35fd518 add netfilter counter support 9 years ago
shirou fc932d9090 Merge pull request #121 from jimmidyson/stat-brackets-process-name
Handle process filenames with spaces in the name
9 years ago
Jimmi Dyson 7e4cef7a30 Handle process filenames with spaces in the name
Fixes #120
9 years ago
James Lamb dfff8af4df add nf_conntrack statistics to net_linux to query iptables/netfilter conntrack limits 9 years ago
Shirou WAKAYAMA 759e96ebaf Merge branch 'master' of github.com:shirou/gopsutil 9 years ago
Shirou WAKAYAMA 223c809234 disk[unix]: revert 61cb121. psutil uses Available as Free. 9 years ago
shirou 59c2eff5e8 Merge pull request #118 from okmeter/fix_disk_freebsd386
[disk] fix build for freebsd 386
9 years ago
Nikolay Sivko 46c34a9d1e [disk] fix build for freebsd 386 9 years ago
shirou 91e273aef0 Merge pull request #115 from okmeter/fix_swap_freebsd
[freebsd] fix SwapMemory for hosts without swap
9 years ago
Nikolay Sivko 075839d9f1 fix imports 9 years ago
shirou 3c39329606 Merge pull request #116 from okmeter/freebsd_proc_info
process[freebsd]: Cmdline, IOCounters, CPUTimes implemented
9 years ago
Nikolay Sivko 45dcaa3b91 process[freebsd]: Cmdline, IOCounters, CPUTimes implemented 9 years ago
Nikolay Sivko d4e648e253 [freebsd] fix SwapMemory for hosts without swap 9 years ago
shirou d49c4afc40 Merge pull request #96 from shirou/process/fix_openfiles
process[linux]: implements OpenFiles.
9 years ago
shirou 2d297dfb74 Merge pull request #113 from shirou/add_process_children
process[linux,freebsd,darwin]: implements Children using pgrep.
9 years ago
WAKAYAMA shirou 54a6c186c1 host[freebsd]: BREAKING CHANGE. Boottime() should return uint64 same as other. 9 years ago
Shirou WAKAYAMA 0afd653fab host[all]: fix #114 String() issue. 9 years ago
shirou b114432fbb Merge pull request #114 from sparrc/uptime-fix
Fix HostInfo.Uptime, which has been returning boot time
9 years ago
Cameron Sparr 444ee723c3 Fix HostInfo.Uptime, which has been returning boot time
Also adding a HostInfo.BootTime field for holding the boot time
9 years ago
Shirou WAKAYAMA dd13300833 process[linux,freebsd,darwin]: implements Children using pgrep. 9 years ago
shirou dcbb29ae2d Merge pull request #110 from shirou/add_mems_to_docker
docker[linux]: add more memory stats in cgroup.
9 years ago
Shirou WAKAYAMA 40bbba9636 docker[linux]: add more memory stats in cgroup. 9 years ago
shirou 4e774eabc2 Merge pull request #109 from influxdb/nc-net-snmp
Add system wide network protocol stats
9 years ago
Nathaniel Cook da832b3f12 add system wide network protocol stats 9 years ago
shirou 4cd10805e9 Merge pull request #106 from cgeoffroy/docker/fix_hardcoded_path
docker: fix static /sys paths by using env variables
9 years ago
cgeoffroy 40f6755c6b docker: fix static /sys paths by using env variables 9 years ago
shirou b9ba9bfee8 Merge pull request #105 from kardianos/fix_cores
cpu: CPUInfo returns one item per physical thread.
10 years ago
Daniel Theophanes fa7f8ba4e8 cpu: CPUInfo returns one item per physical thread. Fix "Cores" to 1 on Linux.
Fixes #104
10 years ago
shirou 127599b2cf Merge pull request #103 from kardianos/cpu_test
Cpu test
10 years ago
Daniel Theophanes bc6481f7e0 Merge branch 'master' of https://github.com/shirou/gopsutil into cpu_test 10 years ago
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 10 years ago
shirou 72109c3d21 Merge pull request #102 from kardianos/common_internal
Common internal
10 years ago
shirou e7d2b34f97 Merge pull request #98 from kardianos/cpu_arm
cpu: support ARM CPUs.
10 years ago
Daniel Theophanes 726e7c6406 cpu: fix cpu test on small ARM device where CPU can be at 100%+rounding.
Fixes #99
10 years ago
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
10 years ago
Daniel Theophanes 69221741e8 cpu: allow override of /sys dir. Fix CPUInfo /proc + cpuinfo combine. 10 years ago