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
Jimmi Dyson
0c55544a4d
Add DM fs parsing tests
2015-11-25 14:22:47 +00:00
Jimmi Dyson
56e3490f3b
Refactor DM fs parsing
2015-11-25 14:15:19 +00:00
Jimmi Dyson
b9aba259df
Switch net stats parsing to strings.Fields - better performance
2015-11-25 13:41:28 +00:00
Jimmi Dyson
338848cd54
Fix Devicemapper output parsing
2015-11-24 22:56:37 +00:00
Jimmi Dyson
b8b6e1bac1
Support devicemapper storage for docker images dir
...
Fixes #920
2015-10-21 09:56:33 +01:00
Jimmi Dyson
2ec8178651
Drop C code for FS sizes
2015-10-16 13:20:55 +01:00
Vishnu kannan
53e7986bc0
Reduce cpu priority for du
.
2015-10-08 11:23:45 -07:00
Rohit Jnagal
387f7b3a7f
Add support for xfs.
2015-06-03 18:13:45 +00:00
Rohit Jnagal
e43ada2e00
Add 'bytes available' to fs info.
...
The current capacity and usage numbers are insufficient to figure out
actual bytes available for a non-root user for the fs. Available is the
value used by df and the one we need to track to detect low diskspace
condition.
2015-05-11 19:27:40 +00:00
Rohit Jnagal
a0a419614f
Add /storage endpoint to 2.0 API.
...
/storage returns {device, mountpoint, capacity, usage} for all filesystems.
In addition, it also detect and applies label for each filesystem - currently two - "root", "docker-images".
/storage/<label> returns info about the filesystem with specific label. eg. /storage/root returns info for root filesystem.
2015-03-11 01:49:58 +00:00
Victor Marmol
f2efed3159
Merge pull request #444 from arkadijs/btrfs
...
Process BTRFS and whole-disk filesystem stats
2015-02-05 17:46:36 -08:00
Victor Marmol
86238d0179
Allow partial success of GetStats().
...
This should make us more robust in the face of failure (at the cost of
making the failures less prominent). We allow GetStats() to return an
error and a partial result. We will process the result and report the
error.
Fixes #306 .
2015-02-03 15:26:31 -08:00
Arkadi Shishlov
02fc9da272
Process BTRFS, whole-disk, device-mapper filesystem stats
2015-01-16 23:05:19 +02:00
Arkadi Shishlov
f9e5b04d8a
Also process /dev/xvd? partitions
2015-01-16 19:30:18 +02:00
Rohit Jnagal
55fceed402
Add some more missing copyrights and script to verify copyright.
...
Add to travis next.
2015-01-09 19:31:25 +00:00
Rohit Jnagal
aee5c36313
Fix vet errors
2015-01-01 22:41:55 +00:00
Abin Shahab
7133ab0f7d
gofmt all files
2014-10-21 05:23:23 +00:00