Commit Graph

77 Commits

Author SHA1 Message Date
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
Seth Jennings
775aca578b avoid stray timeout message 2016-02-27 16:23:59 -06:00
Vishnu kannan
2defa0bddb Adding support for inodes.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-25 15:13:58 -08:00
Vishnu kannan
18a2abc8e5 Ignore empty strings paths while calculting disk usage.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-24 11:04:10 -08:00
Vishnu kannan
110540b4fe Timeout du after a minute.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-16 12:43:50 -08:00
Andy Goldstein
d0b1c5e877 Refactor devicemapper logic
Refactor devicemapper logic to be cleaner are more unit testable
2016-01-22 14:53:47 -05:00
Andy Goldstein
1352d75d6d Fixes for devicemapper partition reporting
- If the Docker storage driver is devicemapper, and the devicemapper device is *not* loopback, fix
  an issue where the device associated with the / mount point was being assigned LabelDockerImages,
  instead of the devicemapper device
- If the devicemapper device is a loopback device, don't assign it LabelDockerImages; instead,
  report the underlying partition's information
2016-01-21 16:51:14 -05:00
Miguel Perez
e0fef76668 Add support ZFS filesystem
- fix container usage stat not loading on first load
2015-12-15 15:41:19 -05:00
Vishnu Kannan
cf0adcc817 Add support for Overlayfs.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2015-12-02 15:43:34 -08:00
Jimmi Dyson
cec96eb68b Merge pull request #978 from jimmidyson/regexp-perf
Regexp tidy up
2015-11-26 09:45:27 +00:00
Jimmi Dyson
d1fce20304 Regexp tidy up 2015-11-26 09:14:26 +00:00
Jimmi Dyson
0be7f64857 Add DM kernel docs link 2015-11-25 14:22:51 +00:00