louisgong
56d6f99e48
fix GetDirUsage ignore error
2020-03-04 20:33:59 +08:00
Davanum Srinivas
10ad7756af
moving docker/utils into container/docker
2020-01-22 23:00:08 -05:00
Davanum Srinivas
774561cf1a
Switch from using docker/docker to k8s.io/utils for mount
2020-01-22 14:11:28 -05:00
Chengze Hu
9fa8c50e0b
go fmt fs/fs.go
2020-01-08 09:10:10 +08:00
huccshen
171086509e
add nolint: unconvert
2020-01-07 09:27:13 +08:00
huccshen
d2fac466b0
Support for mips
...
For support for mips.
https://github.com/kubernetes/kubernetes/issues/86749
2020-01-07 09:27:13 +08:00
zouyee
976f231ab2
support multi tmpfs in cadvisor
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-11-26 10:32:48 +08:00
Davanum Srinivas
b35086151a
Drop support for rkt - which is now archived
...
Change-Id: I4bc38990251fe12be521a242ff9b9c81e2d03501
2019-10-01 20:03:22 -04:00
David Ashpole
be3c91506e
Merge pull request #2219 from jaerik/master
...
Adding ability to handle OverlayFS mounts
2019-09-06 09:41:47 -07:00
jaerik
8a81739956
Adding descriptive comment about overlay fix
...
Signed-off-by: Erik Jansson <erikja@axis.com>
2019-09-06 11:36:41 +02:00
Erik Jansson
0a8da7895f
Adding ability to handle OverlayFS mounts
...
Signed-off-by: Erik Jansson <erikja@axis.com>
2019-05-03 13:23:28 +02:00
Jordan Liggitt
f8a73e018b
Move fs.Context to types.go
...
This config struct is now used in the plugin InitializeContext method, so it should be defined in the os-neutral types.go file
2019-04-11 13:50:03 +00:00
Konstantinos Tsakalozos
28d11adfdb
Fix stats in LXD with ZFS storage pool ( #2189 )
...
Fix stats in LXD with ZFS storage pool
2019-03-12 09:38:27 -07:00
Igor German
046818d64c
fs: get inodes and disk usage via pure go
2019-02-22 21:46:14 +03:00
Davanum Srinivas
4da6d809be
Move from glog to klog
...
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
William Zhang
7961198a0c
fix spelling errors
...
Signed-off-by: William Zhang <zhang.wanmin@zte.com.cn>
2018-09-28 15:49:25 +08:00
Evan Klitzke
f31f580d9c
Lower log verbosity for statfs failures, fixes #1772
2018-07-20 15:26:52 -07:00
Maximilian Meister
87ddb0e041
fix kubernetes issue #65204
...
https://github.com/kubernetes/kubernetes/issues/65204
Signed-off-by: Maximilian Meister <mmeister@suse.de>
2018-06-19 08:28:30 +02:00
Jess Frazelle
d7df66e4eb
vendor: update docker import
...
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-14 17:54:41 -04:00
Davanum Srinivas
29203d62e9
Run find command with nice+ionice to reduce cpu / io
...
Reduce impact of running the "find" command when system is loaded. We
already use "nice" and "ionice" with the "du" command.
2018-05-08 16:32:39 -04:00
David Ashpole
96b62ed83b
Merge pull request #1939 from dims/run-du-with-ionice
...
Run du with ionice
2018-05-08 09:32:03 -07:00
Davanum Srinivas
47a5869161
Run du with ionice
...
Let us run du with idle io priority
2018-05-08 10:51:30 -04:00
Lantao Liu
ef7f0696fe
Do not error out when /dev/disk/by-uuid is not found.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-02-07 08:34:19 +00:00
Davanum Srinivas
5f8eea99dd
Skip getVfsStats when file does not exist
...
There are a lot of spurious exceptions in the kubernetes kubelet logs
like:
E1018 21:03:09.616581 22780 fs.go:332] Stat fs failed. Error: no such
file or directory
Since we know that calling syscall.Statfs will just fail when the path
does not exist, we should just skip making the call.
NOTE: fixing 2017->2018 problems in build by running `./build/jenkins_e2e.sh`
2018-01-02 17:52:38 -05:00
Tim Allclair
5b435b4b70
Clean up cAdvisor logging
2017-11-27 19:48:05 -08:00
Stefan Majer
4a778288ee
Stop AfterFunc timer after findCmd.Wait regardless of errors to prevent memory leak
2017-10-24 15:18:07 +02:00
Antonio Murdaca
4b002b3bd3
*: add CRI-O handler
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-09-05 17:01:58 +02:00
Yang Guo
a5adaad26d
Add an API to get FsStats from filesystem UUID
2017-08-23 12:33:42 -07:00
Flavio Castelli
5a7481f46d
Added fix for Kubernetes btrfs issue #47046
...
https://github.com/kubernetes/kubernetes/issues/47046
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-12 18:14:43 +02:00
Davanum Srinivas
a7f98d4ea8
Support tmpfs in processMounts
...
Helps with the situation in kubernetes where /var/lib/kubelet is
mounted using tmpfs.
2017-06-05 23:02:41 -04:00
David Ashpole
96b603e20a
Merge branch 'master' into overlay2
2017-05-31 14:05:54 -07:00
David Ashpole
b226f57a3b
factor out GetDirDiskUsage and GetDirInodeUsage as utility functions
2017-05-25 08:21:03 -07:00
Bilal Amarni
e0c8ec569d
[docker] add overlay2 storage driver
...
Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2017-04-13 13:39:45 +02:00
Dmitri Rubinstein
3e43b4573d
Added fix for Kubernetes btrfs issue #38337
...
https://github.com/kubernetes/kubernetes/issues/38337
2017-03-15 16:06:54 +01:00
Matthew Sykes
4593632015
Remove pipe to wc and prevent zombie on err
2017-01-05 09:22:00 -05:00
fzu-huang
95153bb857
Fixes partion name, v2 TCP stats
2016-12-27 00:09:51 +08:00
David Ashpole
a9b9dbe6be
Revert "Merge pull request #1503 from dashpole/configure_root_path"
...
Undo this commit
This reverts commit 719df516db
, reversing
changes made to cae5bfaee6
.
2016-10-19 13:47:01 -07:00
David Ashpole
9e47be7bdf
Cadvisor allows the RootPath to be configured. The RootPath is used to determine which filesystem is the RootFs.
2016-10-19 10:39:35 -07:00
David Ashpole
835fd2e619
removed flaky test
2016-10-14 10:38:37 -07:00
David Ashpole
9fdeefe3e4
Cadvisor now publishes per-container inode stats using the command 'find . -xdev printf '.'| wc -c' this is published in the v2 api using a new field
2016-10-12 13:16:21 -07:00
derekwaynecarr
cccf9d5fec
Allow clients to know if inodes are supported on a filesystem
2016-07-26 11:15:07 -04:00
Andy Goldstein
a8c592e601
Exclude Docker devicemapper mounts from fs info
...
Exclude Docker devicemapper mounts from the list of filesystem partitions (e.g.
/var/lib/docker/devicemapper/mnt/*) because these are handled by the ThinPoolWatcher for
per-container filesystem information.
2016-07-07 14:35:22 -04:00
Andy Goldstein
dcf5d575eb
Always set partition fsType
2016-07-07 14:35:22 -04:00
Tim St. Clair
f796871304
Cap the maximum parallel exec commands for getting disk usage
2016-05-20 16:29:49 -07:00
Paul Morie
647224c95a
Add devicemapper support for docker containers
2016-05-18 15:19:20 -04:00
Tim St. Clair
d9c864324b
Fix usage of the latest go-dockerclient
2016-04-04 18:01:47 -07:00
Shaya Potter
ee52fdf4d1
address jon and vish comments
2016-03-23 18:19:31 -07:00
Shaya Potter
206670a655
first cut of rkt handler
2016-03-21 17:34:42 -07:00
Aaron Levy
49906a77fc
fs: use set for dockerImagePaths
2016-03-06 17:41:51 -08:00
Aaron Levy
b1e4bc7d11
fs: evaluate labels from all mount points
2016-03-06 17:41:51 -08:00