derekwaynecarr
6c114be580
Expose total inodes
2016-08-02 10:47:51 -04:00
derekwaynecarr
cccf9d5fec
Allow clients to know if inodes are supported on a filesystem
2016-07-26 11:15:07 -04:00
Matt Wringe
213c254bb7
Add in the ability to expose the ip address of a container.
2016-07-13 13:58:43 -04:00
Shaya Potter
6fa3687720
Polling rkt implementation of new watcher inteface ( #1284 )
...
polling rkt implementation of new watcher inteface
2016-05-17 10:34:56 -07:00
Shaya Potter
e02632463b
Refactor container watching out of raw handler into its own inteface / package
2016-05-11 20:27:10 -07:00
Tim St. Clair
019bfaecc7
Delete unused ListThreads container method
2016-05-06 13:45:29 -07:00
Vish Kannan
bebe18b67a
Merge pull request #1261 from sjpotter/listToCommon
...
move ListContainers code to common and make rkt play nice
2016-05-03 10:12:54 -07:00
Shaya Potter
5ca11bb1a0
move ListContainers code to common and make rkt play nice
...
playing nice means not elliding the system.slice cgroup but allowing the
raw handler to handle it
2016-05-03 07:14:53 -07:00
Tim St. Clair
4d3ef349fb
Move utils/machine -> machine
2016-05-02 15:56:49 -07:00
Tim St. Clair
dc6415aef7
Check docker container existance the same way as raw & rkt
2016-04-15 11:35:31 -07:00
Tim St. Clair
4861405904
Refactor common container GetSpec
...
- Pull out the root container cases, since they're only relevant in the
raw container handler
- Pass parameters rather than depending on AbstractContainerInterface
2016-04-14 16:57:52 -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
Shaya Potter
5e04a224ae
pull out common parts of docker and raw container handlers for use by rkt handler
2016-03-02 16:12:04 -08:00
Vish Kannan
06ac85ca29
Merge pull request #1121 from vishh/opt-out-metrics
...
Support opt out for metrics.
2016-02-25 16:25:02 -08: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
36415f465a
Support opt out for metrics.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-24 15:57:31 -08:00
Vishnu kannan
07136d4e90
Do not fail stats collection if cpu_cfs_quota is not enabled.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-23 17:20:02 -08:00
Florian Koch
669bc4abfa
add cgroup quota and period support / add missing tests
2016-02-02 20:33:11 +01:00
Jimmi Dyson
4e9d29a408
Fix FS usage goroutine leaks
2016-01-14 19:30:48 +00:00
Vishnu kannan
a6daa760c8
Fix goroutine leak in docker fs handler logic.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2015-12-04 11:19:49 -08:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08: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
17622ecba1
Rename readInt64 -> readUInt64 for clarity
2015-11-25 16:42:33 +00:00
Alex Mavrogiannis
4533dd7d18
changed libcontainer dependency to runc
2015-11-21 14:04:01 -08:00
mqliang
ce001dcd4e
Fix imported package names to not use mixedCaps or under_scores
2015-10-22 12:10:57 +08: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
Rohit Jnagal
a123fd72d8
Add logic to read custom metric config files from container root.
...
Docker does not provide the rootfs path through docker inspect or statefile
and the path is dependent on the storage driver being used.
Instead of enumerating the storage drivers, we pick a pid from the container
and get the config from /proc/pid/root. Although a bit expensive, this method
works for non-docker containers too.
2015-07-22 15:45:07 +00:00
Alex Mavrogiannis
9666c8b38f
population of memory limit for the machine container
2015-07-07 14:15:38 -07:00
Victor Marmol
72df0cb098
Send data for all interfaces for raw containers
2015-06-08 09:58:47 -07:00
Victor Marmol
1f248ee956
Add inotify watches as debug information
2015-05-21 14:40:49 -07:00
Victor Marmol
392e1be9e5
Use one InotifyWatcher
2015-05-21 14:40:49 -07:00
Victor Marmol
ab032efda9
Report the last cgroup destroy event.
2015-05-21 10:11:09 -07:00
Victor Marmol
36a6e68169
Separate inotify handling into its own object.
...
This makes it easier to ensure the error conditions are handled well and
that we don't leak watches.
Fixes #703
2015-05-21 08:36:47 -07:00
Rohit Jnagal
5e10989a78
Add an api to support ps/top.
2015-05-12 00:06:47 +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
4b4312b290
Improve approximation of container creation time.
...
Containers with subcontainers always report creation time to be same as the time
of creation of the latest subcontainer.
Still not an ideal solution, but accurate for most practical purposes.
2015-05-07 18:14:54 +00:00
Victor Marmol
1a1a1faa7e
Update inotify dependency.
2015-05-04 10:15:21 -07:00
Rohit Jnagal
d0424eca0f
Add --docker_only flag to enable tracking for only docker containers and root.
...
This reduces unnecessary load on the system and also cleans up the UI clutter.
Currently defaulted to false.
2015-04-30 23:34:44 +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
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
Rohit Jnagal
872546ba3a
Bulk move current info api to info/v1. Making room for info/v2.
2015-03-04 00:47:28 +00:00
Rohit Jnagal
e09f9684e6
Fix cpuset returned in spec on a single core machine.
...
Switch from "0-0" to "0".
2015-02-19 18:54:23 +00:00
Victor Marmol
45ba276ae8
Add container creation time to ContainerSpec.
2015-02-05 09:52:10 -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
Vishnu Kannan
aedf42ba8c
Adding 'HasDiskIo' to Container Spec to indicate if diskio stats are available for a given container.
2015-01-20 05:06:57 +00:00
Rohit Jnagal
cbdd96a554
Add task load stats to containers.
...
The stats are only populated when cAdvisor is running outside network namespaces.
We'll add a different backend to retrieve the same data from within namespaces.
2015-01-16 23:25:22 +00: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
Victor Marmol
4e3629101d
Cleanup of libcontainer state generation.
2015-01-05 13:47:35 -08:00
Vish Kannan
54834156eb
Merge pull request #407 from rjnagal/diskinfo
...
Add network stats to root container.
2015-01-02 10:06:11 -08:00