Tim St. Clair
4c506006f2
Don't validate docker state file, since it's no longer used
2016-05-06 19:29:24 -07:00
Vishnu kannan
e2717d8bb7
Avoid collecting network stats for non root cgroups in raw handler.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-03-15 12:16:11 -07:00
Vishnu kannan
36415f465a
Support opt out for metrics.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-24 15:57:31 -08:00
Shimin Guo
a26b58ec8e
expose page cache size
2016-01-15 08:45:51 -08:00
Shimin Guo
1a867bdadd
expose RSS
2016-01-15 08:45:51 -08:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08:00
Jimmi Dyson
82810f13cd
Remove unused code (via deadcode linter)
2015-11-27 21:48:33 +00:00
Jimmi Dyson
360c73c6fd
Improve perf of interface stats parsing
2015-11-27 14:12:41 +00:00
Jimmi Dyson
f9eb56e800
Merge pull request #966 from afein/godep_update_runc
...
[Godeps] changed docker/libcontainer dependency to runc/libcontainer
2015-11-26 15:19:28 +00:00
Jimmi Dyson
d1fce20304
Regexp tidy up
2015-11-26 09:14:26 +00:00
Alex Mavrogiannis
4533dd7d18
changed libcontainer dependency to runc
2015-11-21 14:04:01 -08:00
Jimmi Dyson
561cc1da4f
Use file reader directly for net stats
2015-10-28 12:51:19 +00:00
Jimmi Dyson
c72e0c23a5
Add test for net dev stats
2015-10-28 12:51:13 +00:00
Jimmi Dyson
da771a0977
Drop regexp for net stats parsing
...
Reported in kubernetes/kubernetes#16296
2015-10-27 20:16:49 +00:00
Jimmi Dyson
8b6e002e0a
Disable tcp stats collection
...
Fixes #938
2015-10-22 21:05:46 +01:00
Jimmi Dyson
5a5d0575f5
Docker, libcontainer, docker client bumps
2015-10-20 09:22:12 +01:00
Tomas Kral
bd61caf0c3
add failcnt
2015-10-02 14:24:22 +02:00
Florian Koch
e4262b91b1
move TCP and TCP6 stats to NetworkStats
2015-09-25 09:04:53 +02:00
Florian Koch
dd041457b5
some fixes
2015-09-24 15:44:42 +02:00
Florian Koch
c331982f21
add tcp/tcp6 statistics
2015-09-24 15:44:42 +02:00
Jimmi Dyson
7e10398a50
Use proc fs to get network stats.
...
Reasons discussed in
https://github.com/google/cadvisor/issues/822#issuecomment-135811901 &
following.
2015-08-29 00:20:07 +01:00
Jimmi Dyson
d5fa97c998
Get network stats by switching network namespace on newer Docker
...
versions.
Fixes #822
2015-08-25 23:27:01 +01:00
anushree-n
fff8880a8d
Typo in helpers.go
2015-07-13 10:30:46 -07:00
Victor Marmol
b923eff11c
Expose multiple network interfaces in API.
...
Part of #686
2015-06-07 17:01:53 -07:00
Rohit Jnagal
5e10989a78
Add an api to support ps/top.
2015-05-12 00:06:47 +00:00
Victor Marmol
757ad9e1ae
WorkingSet should use inactive file
2015-05-11 09:49:29 -07:00
Victor Marmol
8928d487de
Min working set should be 0.
...
Fixes #685
2015-05-11 09:49:23 -07:00
Victor Marmol
a7a7aacebc
Add flags to customize the events StoragePolicy.
2015-05-01 12:04:11 -07:00
Rohit Jnagal
dfcc05a953
Fix networking stats by switching Tx and Rx stats.
...
A better fix is to directly use stats collected by libcontainer.
2015-04-13 17:01:06 +00:00
Victor Marmol
64c0d3d8c3
Migrating cAdvisor to new libcontainer.
...
Backwards compatability is maintained with older versions of
libcontainer.
2015-04-10 14:51:29 -07:00
Rohit Jnagal
872546ba3a
Bulk move current info api to info/v1. Making room for info/v2.
2015-03-04 00:47:28 +00:00
Arkadi Shishlov
fe7df00aec
Add blkio cgroup to list of supported subsystems
2015-01-17 17:09:35 +02:00
Rohit Jnagal
275b3ed653
Don't use state.json from libcontainer to get cgroup paths.
...
This confuses cadvisor on systems where cadvisor doesn't see cgroup mounts at the same place as root namespace view.
2014-12-24 00:25:11 +00:00
Victor Marmol
91c974e913
Generate CgroupPaths when not available.
...
This happens always for non-Docker containers and sometimes with older Docker
containers.
2014-12-15 16:57:30 -08:00
Eric Paris
b74d2c6296
update to support newest libcontainer update
2014-12-15 15:00:45 -08:00
Victor Marmol
ff9a4995a1
Report error while fetching network stats.
2014-12-10 13:26:42 -08:00
Vish Kannan
26921c3643
Merge pull request #277 from vmarmol/flat
...
Flatten ContainerStats struct
2014-11-05 11:26:10 -08:00
Abin Shahab
e6406ef6d0
Additional blkio stats
...
This adds blkio.io_wait_time, blkio.io_service_time, blkio.io_merged, and blkio.time to the api
2014-10-21 22:41:33 +00:00
Victor Marmol
add5147769
Flatten ContainerStats struct
2014-10-20 11:17:20 -07:00
Victor Marmol
ebf231e4df
Fix name resolution in Systemd systems
2014-09-23 20:01:35 -07:00
Rohit Jnagal
6aee4c03b0
Flatten diskio stats and use struct key.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-09-22 23:24:34 +00:00
Rohit Jnagal
9a76da9993
Add diskio stats to cAdvisor.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-09-22 22:48:59 +00:00
Victor Marmol
56054e3e31
Remove SplitName().
...
This is possible thanks to the new libcontainer interface that allows
the use of absolute paths.
2014-08-02 11:36:10 -07:00
Nan Monnand Deng
fb5074a2f1
unit test for SplitName()
2014-07-29 01:52:59 -04:00
Nan Deng
afc84e85c3
use init's cgroup to get nest level
2014-07-28 18:13:54 -07:00
Vishnu Kannan
41d9275b51
Fixed network stats handling. The UI now reports network errors.
2014-07-23 22:24:43 +00:00
Victor Marmol
eef8c01e4e
Better handle nested containers and libcontainer.
2014-07-22 18:04:08 -07:00
Vishnu Kannan
ef13440034
Addressed comments. Another series of bug fixes.
...
Modified the docker driver and lmctfy driver to skip containers they cannot handle.
2014-07-22 19:55:14 +00:00
Vishnu Kannan
7f96c90c72
Fix raw cgroups handler.
2014-07-22 18:58:16 +00:00
Vishnu Kannan
1edb798de5
Features:
...
Added Network Stats to Container Info. It still not exposed via the HTTP UI.
Bug fixes:
1. Modified docker handler to use libcontainer.GetStats instead of quering the fs package.
2. cAdvisor will not stall if any of its core operations fail.
3. cAdvisor will safely ignore any inactive or leaked docker containers. When containers are leaked cgroup state exists but docker is not aware of them.
2014-07-22 18:58:16 +00:00