Commit Graph

1146 Commits (573f3336a42a9899f5075dbd57dfb76a57e0e0b5)
 

Author SHA1 Message Date
shirou 51809083eb
Merge pull request #449 from mpfz0r/connsupport
Implement Connection support for OpenBSD
Sam Kleinman 4d92a03da8 fix cross compiles
Marco Pfatschbacher df6462b50e Fix PR comments made by shirou
shirou 09135c072b
Merge pull request #448 from mpfz0r/master
Fix IOCounters for OpenBSD
Marco Pfatschbacher 5476f100bc mark net_connections as supported for OpenBSD
Marco Pfatschbacher 1ca44eace9 fix typo
Marco Pfatschbacher 6e7aca41d7 Implement Connection support for OpenBSD
This retrieves open TCP/UDP connections by using netstat(1)
File descriptors and pids are not supported.
Marco Pfatschbacher d62768abc9 Fix IOCounters for OpenBSD
Use SysctlRaw instead of Sysctl.
The latter assumes NUL terminated strings
which returns the lenght off by one.
Therefore, only n-1 disks where reported.
shawnps befc2c3d92 call Fatal if length of Users() is 0
tycho garen 08a382b207 make process.processes function public
shirou dc3a09c1d0 [host] linux: change file if in a lxc container.
shirou 48fc561289 add HOST_VAR to README
shirou 232ceb4667 update README.
shirou a0823a75b1 Merge pull request #438 from mlkm/processtimes-win
Implement Process.Times for Windows
shirou 4f3240425b Merge pull request #439 from danielnelson/add-host-var-envvar
Add HOST_VAR envvar and use to locate utmp on Linux.
Daniel Nelson df2f1a8dd1
Add HOST_VAR envvar and use to locate utmp on Linux.
mlkm b9ab45bcdd Implement Process.Times for Windows
shirou f23a6bd2fa Merge pull request #436 from john-m-liu/patch-1
Improve performance of finding child processes on Windows
shirou 8f7dc4e5a1 Merge pull request #432 from stevenh/raw-sysctl
Eliminate use of sysctl command on FreeBSD
shirou e01a14e318 [net] linux: skip if permission error on getProcInodesAll
This fixes #433
John Liu d28c254aaf Improve performance of finding child processes on Windows
Steven Hartland 6450c60b61 Eliminate use of sysctl command on FreeBSD
In order to improve performance and help prevent crashes due to the outstanding fork crash bug:
https://github.com/golang/go/issues/15658

Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32.

This also merges OpenBSD and FreeBSD load implementations which are identical.
shirou a6cc94f428 update README about thread and cmdline.
shirou fa0e9fd921 Merge pull request #428 from Leonid99/threads
Implement Threads() in Linux
shirou 1873a1fd4f Merge pull request #431 from Leonid99/whitespace
process.go: reformat whitespaces to keep gofmt happy
Leonid Podolny 4269f19b1b process.go: reformat whitespaces to keep gofmt happy
Leonid Podolny 7ee4a4c6ff Fix Threads() signature to better match python original
Leonid Podolny 7ad3836ad3 Implement Threads() for Linux
WAKAYAMA shirou 1ba77cdb3d [load] freebsd: change to use x/sys/unix.SysctlRaw.
This implementation is borrowed from NodeExporter.
https://github.com/prometheus/node_exporter/blob/master/collector/loadavg_freebsd.go
shirou fcba942e03 Merge pull request #426 from disq/cpu-NaN-fix
Fix NaN percentage if process was created too soon
Kemal Hadimli 826e63acbc Never divide by zero
Kemal Hadimli a3144a6850 Remove parens
Kemal Hadimli 696e1e0123 Fix NaN percentage if process was created too soon
shirou 6e221c4826 Merge pull request #423 from derekwbrown/db/windows_swap_memory
Add implementation of SwapMemory() for windows
WAKAYAMA Shirou 4c9fd1f200 [cpu]linux: add testcode with testdata.
Derek Brown 7c807c86e4 Add implementation of SwapMemory() for windows
shirou 084e5f47b4 Merge pull request #421 from sypher7/patch-1
Update README / required go version
Daniel Lynn e5a4a82a13 Update README / required go version
Adding the `context` package import in 3834908232 bumps the required go version to 1.7.
shirou a452de7c73 Merge pull request #346 from phemmer/rlimit-current
add current values to rlimit retrieval
shirou 2a3465ebd9 Merge pull request #419 from hnw/add-type-definitons-mips
Add type definitions for mips and mipsle
Yoshio HANAWA a889bcce1a Add type definitions for mips and mipsle
shirou 1c211f0807 Merge pull request #417 from schmichael/remove-setenv
Alter subprocess's environment instead of the hosts
Michael Schurter 042305ee4a Remove SetEnv on all platforms
Michael Schurter 565f5c8c5e Alter subprocess's environment instead of the hosts
Fixes #415
Shirou WAKAYAMA 3aa2ffab12 [process] linux: fix NumFD type inconversion.
shirou ce4a32091a Merge pull request #412 from DataDog/conor/faster-numfds
Just look at filenames for linux NumFDs call
WAKAYAMA Shirou 114c78c777 [host]: add not implemented methods.
WAKAYAMA Shirou 9c5b318e0d [host] windows: define Virtualization()
Conor Branagan 7b058c7436 Just look at filenames for linux NumFDs call.
In NumFDs we don't care about the contents of the fields, just how many
there are.
shirou d97b1c368a Merge pull request #408 from sean-/solaris_zone_host_id
Add HostID support to the `solaris` build target.