Commit Graph

2514 Commits (11907e30b9098e587e55e8dd87849cace890f772)
 

Author SHA1 Message Date
Lomanic 42aec722ba
Merge pull request #878 from fancybits/android-loadavg
[load][linux] implement Avg() on top of sysinfo syscall when /proc/loadavg is not readable
5 years ago
Aman Gupta f42052bee7 [load][android] implement on top of sysinfo syscall 5 years ago
Lomanic 8f969117ab [process][darwin][nocgo] Fix #867 iterate on every lines returned by lsof to handle potential warnings 5 years ago
Lomanic c89193f22d
Merge pull request #857 from Gui13/fix_837
Do not cache boot time for linux. Fix #837
5 years ago
Lomanic b6c59f1e77
Merge pull request #862 from mxmauro/quick_cmdline_windows
Fixed slow command line retrieval on Windows
5 years ago
Lomanic c972b298b3
Merge pull request #876 from gtosh4/patch-1
Don't ignore context for io counters
5 years ago
Lomanic ee64e05b02
Merge pull request #869 from renaynay/master
Added check for `CLK_TCK` for darwin
5 years ago
gtosh4 936d3b27f1
Don't ignore context for io counters 5 years ago
renaynay 5e1b882e37
updated docs for TimesStat with correct time unit 5 years ago
renaynay 0e9462eed2
renamed CLK_TCK variables for consistency across OSs 5 years ago
renaynay d4985c9690
added check for CLK_TCK 5 years ago
Mauro Leggieri 7783e1d58e Added retrieval of OS platform to determine better a process platform. 5 years ago
Lomanic 987c949880
Merge pull request #864 from GameXG/master
fix #863 Swap.UsedPercent is inconsistent
5 years ago
GameXG 144c67833a
fix #863 Swap.UsedPercent is inconsistent 5 years ago
shirou a81cf97fce
Merge pull request #861 from Lomanic/issue391
[host][linux] Fix #391 retrieve sensors temps on OSes lacking hwmon
5 years ago
Mauro Leggieri 00957cfedc Fixed slow command line retrieval on Windows 5 years ago
shirou 93a90ccfca
Merge pull request #856 from juan-leon/delayacct-blkio-ticks-as-iowait
Provide an estimation of Iowait metric per process
5 years ago
Guillaume Bienkowski aeb3b6b1c7 Do not cache boot time for linux. Fix #837 5 years ago
JuanLeon Lahoz 426b5148e3 Provide an estimation of Iowait metric per process 5 years ago
shirou 53cec6b37e
Merge pull request #839 from tklauser/move-parse-funcs
net: move parseNetLine and parseNetAddr to net_unix.go
5 years ago
shirou 2df80f551a
Merge pull request #850 from Lomanic/issue846
[process][windows] Fix #846 use win32 API in disk.IOCounters() instead of slow WMI call returning wrong values
5 years ago
Lomanic f98100720e [process][windows] Fix #846 use win32 API in disk.IOCounters() instead of slow WMI call returning wrong values 5 years ago
shirou a3b23c5ccf
Merge pull request #834 from Helflym/master
net: add AIX support
5 years ago
shirou 0169511c59
Merge pull request #843 from shirou/feature/add_mac_build_on_circleci
add macos test on CircleCI.
5 years ago
shirou dbbf1edf12 add macos test on CircleCI. 5 years ago
Tobias Klauser 22d8ee41e5 net: move parseNetLine and parseNetAddr to net_unix.go
These funcs are only used in net_unix.go which is only compiled for
darwin and freebsd.
5 years ago
Lomanic 27358e8a2f
Merge pull request #840 from devopsext/correct_exit_code_pid_existence
[process][linux] make process.IsRunning() return nil error if process does not exist
5 years ago
Ilya Prudnikov f3598686cb Correct returned error (set to nil) in case process is not exist 5 years ago
Lomanic 8a5c10c292
Merge pull request #838 from tklauser/fix-TestHostInfoStat_String
host: fix TestHostInfoStat_String
5 years ago
Tobias Klauser 7bee6a934d host: fix TestHostInfoStat_String
TestHostInfoStat_String has been broken since kernelArch has been
introduced. Fix it.

Also adjust the error message to show the wanted string, aligned with
the gotten string so it's easier to spot differences.
5 years ago
Clément Chigot 77ff16c081 net: add AIX support 5 years ago
shirou a9d510e7e5
Merge pull request #821 from devopsext/process_check_pid_exnistense_fix
Fix check pid existence when running in different process namespace (container)
5 years ago
shirou 33820ab930
Merge pull request #829 from xueweiz/mem
mem: collect Active(anon), Inactive(anon) and Unevictable
5 years ago
Xuewei Zhang 929068ccd5 mem: Add VirtualMemoryEx() and VirtualMemoryExWithContext() 5 years ago
Xuewei Zhang 3695635d09 Collect Active(anon), Inactive(anon) and Unevictable in /proc/meminfo
These fields helps people understand anonymous memory usage pattern.
5 years ago
Ilya Prudnikov 8dec3d81f3 Fix check pid existence when running in different process namespace (container) 5 years ago
shirou 0d7dd621d2
Merge pull request #826 from Lomanic/issue250iocounters
[process][windows] Use win32 API in process.IOCounters() instead of slow WMI call #250
5 years ago
Lomanic 1c8ddacaf7 [process][windows] Use win32 API in process.IOCounters() instead of slow WMI call #250 5 years ago
shirou 392f368142 add HOST_DEV environment variable to README. 5 years ago
shirou dce23de000
Merge pull request #819 from devopsext/disk-fix_2.19.11
Fix for track disk stats when running in container
5 years ago
Ilya Prudnikov 256e00319e implement proposed solution 5 years ago
shirou 3964e5b579
Merge pull request #822 from tgross/b-panic-on-empty-readline
fix host.Info() panic if /etc/debian_version is empty
5 years ago
Tim Gross c69ef749eb fix host.Info() panic if /etc/debian_version is empty
The ReadLines helper function doesn't guarantee that the length of
lines is non-zero or that the lines have contents. Most callers
include a check for length but this was missing for version
fingerprinting on Debian if `/etc/debian_version` was empty, leading
to a panic.
5 years ago
Ilya Prudnikov 7277cdf050 Fix for track disk stats when running in container 5 years ago
shirou bcf28f0c37
Merge pull request #812 from tklauser/darwin-getfsstat
Use Getfsstat from golang.org/x/sys/unix on Darwin
5 years ago
shirou 02e3fadf83
Merge pull request #814 from tklauser/openbsd-getfssstat
Use Getfsstat from golang.org/x/sys/unix on OpenBSD
5 years ago
Tobias Klauser 7f9e55b000 Use Getfsstat from golang.org/x/sys/unix on OpenBSD
Use the syscall wrapper and types from golang.org/x/sys/unix instead of
implementing them locally.

Also remove unused generated types and consts.

Follow-up for #810 and #812
5 years ago
Tobias Klauser 422c4f61a1 Use Getfsstat from golang.org/x/sys/unix on Darwin
Starting with Go 1.12, direct syscalls on darwin are no longer
supported. Instead, libSystem is used when making syscalls. See
https://golang.org/doc/go1.12#darwin

In order to still support Getfsstat, use the syscall wrapper and types
from golang.org/x/sys/unix which uses the correct syscall method
depending on the Go version.

Also use the correct MNT_* consts and their respective strings according
to the mount(8) manpage.

Follow-up for #810
5 years ago
Lomanic fa8ed3a978
Merge pull request #810 from tklauser/freebsd-getstatfs
Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12
5 years ago
Tobias Klauser 6aae71ca26 Use Getstatfs from golang.org/x/sys/unix for 64-bit inode support on FreeBSD 12
Use unix.Getstatfs and its associated Statfs_t type instead of
implementing them locally in this package. This allows to use 64-bit
inode fields on FreeBSD 12 while still keeping backwards compatibility
for old FreeBSD versions, as unix.Getfsstat will use the correct syscall
number and data structure version and convert its result
correspondingly.

Also see https://golang.org/cl/136816 for details.
5 years ago