Commit Graph

1379 Commits

Author SHA1 Message Date
Bin Liu 601dd00812 add CgroupCPUUsageDocker just like CgroupCPUDocker 2018-10-19 18:44:19 +08:00
Nico Vinzens 453688f8c5
Merge pull request #1 from nvinzens/replace_self_mounts_with_self_mountinfo
replace self/mounts with self/mountinfo
2018-10-18 15:15:43 +02:00
Nico Vinzens 1079f31626 change the way we handle the mountinfo lines 2018-10-18 09:34:06 +02:00
Nico Vinzens 23dfe98621 use HostSys to construct device path 2018-10-17 14:45:40 +02:00
Nico Vinzens 813c630e9c replace self/mounts with self/mountinfo 2018-10-17 13:46:49 +02:00
shirou a11c78ba2c
Merge pull request #581 from CMGS/master
get docker container cpu usage from cpuacct.usage
2018-09-27 21:43:08 +09:00
CMGS 80b3769ea3 not modify old API now 2018-09-21 11:22:23 +08:00
shirou 77e5abb6f0
migrate to circleci2 (#587)
* add circleci 2.0 config, which has golang 1.9 image.
2018-09-16 17:40:02 +09:00
shirou e50c47b503
Merge pull request #528 from pytimer/win_services
[windows]services: add windows service feature
2018-09-16 14:24:14 +09:00
shirou 6f5e32dd2f
Merge pull request #584 from Quasilyte/quasilyte/commentedOutCode
cpu,process: remove commented-out code
2018-09-15 11:30:41 +09:00
shirou 62f689bda3
Merge pull request #576 from Lomanic/issue574
Fix #574
2018-09-15 11:29:10 +09:00
shirou 50e1c3da5a
Merge pull request #575 from Lomanic/issue573
Fix #573
2018-09-15 11:28:52 +09:00
Lomanic 3773c0ebf0
Merge pull request #583 from Quasilyte/quasilyte/emptyFallthrough
net: use multi-value case clause instead of fallthrough
2018-09-14 01:16:50 +02:00
Iskander Sharipov f3d4342c30 cpu,process: remove commented-out code
Found using https://go-critic.github.io/overview#commentedOutCode-ref
2018-09-13 23:56:24 +03:00
Iskander Sharipov 3684fce88a net: use multi-value case clause instead of fallthrough
Found using https://go-critic.github.io/overview#emptyFallthrough-ref
2018-09-13 23:52:36 +03:00
CMGS d93c01e54d get docker container cpu usage from cpuacct.usage 2018-09-11 15:29:13 +08:00
Lomanic 18b2744df2 [host][darwin] Fix #574, use 'uname -r' in KernelVersion() 2018-09-01 17:23:39 +02:00
Lomanic e38ea9f318 [process] Don't lose context in ProcessesWithContext() on Windows and Linux 2018-09-01 16:18:32 +02:00
Lomanic 82b8111d04 [process][darwin] Fix #573 use Pids() to get processes in Processes() 2018-09-01 16:17:19 +02:00
Lomanic eb1f1ab16f
Merge pull request #549 from pytimer/win_net
[net] Implements windows net package Connections and ConnectionsPid
2018-09-01 15:42:34 +02:00
Lomanic ef54649286 [windows] Use windows.NewLazySystemDLL to (possibly) prevent DLL hijacking
Might be useless because of https://docs.microsoft.com/en-us/windows/desktop/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications
but better be safe than sorry.

Ref: https://github.com/shirou/gopsutil/issues/570#issuecomment-413951653
2018-08-18 22:52:41 +02:00
Tagir Bakirov 29b3c3719b fix slice indices 2018-08-14 09:12:09 +02:00
shirou 68ff0e2996
Merge pull request #566 from zyun-i/add_freebsd_mem_laundry
Add mem(laundry) numbers on FreeBSD.
2018-08-11 22:50:56 +09:00
Isida Zyun'iti bd7b2f8148 Add mem(laundry) numbers on FreeBSD.
After FreeBSD 11.1, mem number of cached replaced by laundry.

https://reviews.freebsd.org/D8302
2018-08-08 19:54:18 +09:00
Tagir Bakirov 47166d6a81 implement grouped memorymaps output 2018-08-08 09:37:17 +02:00
Isida Zyun'iti 48da6ade9e Fix FreeBSD total memory.
Like this.
FreeBSD: fix total memory giampaolo/psutil@bd9a58b bd9a58b2af
2018-08-07 10:42:15 +00:00
shirou 8048a2e9c5 [disk] add an comment. 2018-08-01 14:39:43 +09:00
shirou 8b14be0b8b
Merge pull request #563 from tomekkolo/usedPercent_calculation_fix
Fixing calculation of UsedPercent.
2018-08-01 14:38:17 +09:00
Tomasz Kolodziej 8e2d09ee63 Removed unnecessary line 2018-07-30 15:06:41 +02:00
Tomasz Kolodziej 573f3336a4 Fixing calculation of UsedPercent.
Now it is calculated based of available disk space for user,
not including reserved space for root. This is compatible
with psutil and df command.
2018-07-30 14:59:23 +02:00
shirou c06610bac7
Merge pull request #561 from szaydel/szaydel/add-stub-for-solaris
Fix undefined process.Processes when building telegraf on Solaris-based system
2018-07-28 21:30:39 +09:00
shirou c5575382be
Merge pull request #558 from ozairjr/slackware-version
Adding Slackware platform information
2018-07-28 21:26:27 +09:00
Sam Zaydel 391d5ecf7d Fix undefined process.Processes when building telegraf on Solaris-based system 2018-07-26 15:10:44 -07:00
Ozair Jr 0bab9611d2 Adding Slackware platform information 2018-07-25 10:17:08 -03:00
shirou d9d9688f3d
Merge pull request #556 from Lomanic/winmemtest
[mem][windows] Fix TestVirtual_memory test
2018-07-24 11:04:15 +09:00
shirou ffda3675ce
Merge pull request #557 from Lomanic/issue555
[disk][unix] Fix #555 Unescape escaped sequences in fstab path in disk.Usage
2018-07-24 10:59:49 +09:00
Lomanic 00bbeb757e [disk][unix] Fix #555 Unescape escaped sequences in fstab path in disk.Usage 2018-07-24 00:24:05 +02:00
pytimer 0ffcfc901f [net][windows] Remove exported types and convert ALL_CAPS to mixedCaps 2018-07-21 14:28:53 +08:00
pytimer 1c2cebbbc4 [net] Implements windows net package function Connections and ConnectionsPid 2018-07-21 14:21:22 +08:00
Lomanic 6b586d2fcd [mem][windows] Fix TestVirtual_memory test 2018-07-19 00:19:02 +02:00
Lomanic 6ddbb8c5d8 [process][windows] Reuse Ppid() in Parent(), don't use slow wmi call 2018-07-14 20:56:20 +02:00
Lomanic bb518e9c4e [host][windows] Remove exported wmi type from #550 2018-07-14 18:52:10 +02:00
Lomanic 97b2ed891d
Merge pull request #550 from pytimer/win_temperature
[host] Implement windows temperature use wmi
2018-07-14 18:38:17 +02:00
shirou 6b48f3bd01 [mem] fix test. 2018-07-13 23:34:38 +09:00
shirou 4f442dad38
Merge pull request #553 from elboulangero/master
Fix TestVirtual_memory #552
2018-07-13 23:33:29 +09:00
Arnaud Rebillout 558a95bf02 Fix TestVirtual_memory #552
Based on https://stackoverflow.com/a/30772733/776208

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
2018-07-12 13:05:28 +07:00
pytimer 62fcd00c4d [host] Implement windows temperature use wmi 2018-07-09 15:21:26 +08:00
shirou 63728fcf6b
Merge pull request #542 from gescheit/master
use full cmdline in case of proc renaming
2018-07-05 22:28:12 +09:00
shirou 634df1d455
Merge pull request #546 from Percona-Lab/support_for_unix_socket
Support for unix sockets in ConnectionsPid()
2018-07-05 22:09:29 +09:00
shirou 4923bd298a host: remove empty virtualzation check.
related to #547
There is an architecture which supports no virtualization.
2018-07-05 21:54:46 +09:00