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
6ad13d126b
Check filesystem before accessing it in UI.
...
Fixes #377 .
2014-12-18 16:09:50 -08:00
Victor Marmol
7ca63db2c5
Handle old versions of the libcontainer config.
...
Libcontainer recently changed its config by changing the type of a
field. This commit tries parsing the config as the new and old types.
2014-12-16 17:52:44 -08:00
Rohit Jnagal
8eec529106
Merge pull request #358 from vmarmol/update-libcontainer
...
Update libcontainer dependency
2014-12-15 17:01:44 -08: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
Victor Marmol
084e809507
Merge pull request #356 from rjnagal/rename
...
Add systemd information to validate output.
2014-12-16 07:35:30 +08:00
Rohit Jnagal
4ec9894ea2
Add systemd information to validate output.
2014-12-15 23:26:30 +00:00
Victor Marmol
0123fe1d07
Merge pull request #355 from rjnagal/syst
...
Fix Docker handler for machines that use systemd just as a naming service
2014-12-16 07:07:42 +08:00
Eric Paris
b74d2c6296
update to support newest libcontainer update
2014-12-15 15:00:45 -08:00
Rohit Jnagal
f585e4bc5e
Fix Docker handler for machines that use systemd just as a naming service without controlling cgroups.
2014-12-15 22:58:44 +00:00
Rohit Jnagal
1953bd0e94
Bump minimum docker supported version to 1.0.
2014-12-15 16:57:22 +00:00
Victor Marmol
cb0387b41e
Try to detect systemd by checking for its named cgroup hierarchy.
...
Fixes #342
2014-12-11 17:30:33 -08:00
Victor Marmol
ff9a4995a1
Report error while fetching network stats.
2014-12-10 13:26:42 -08:00
Victor Marmol
18e9394dbc
Adding runtime options docs.
...
Also some cleanups of other docs.
2014-12-04 09:16:30 -08:00
Victor Marmol
e3ab15417c
Ignore update errors for dead containers.
...
This adds an Exists() interface to detect when the container is dead.
Before reporting an update error we check is Exists() is true.
Some documentation was added as well.
2014-11-22 05:31:11 +08:00
Vish Kannan
c005bc1722
Merge pull request #326 from vmarmol/integration
...
Register inotify watches on all cgroup hierarchies.
2014-11-21 09:11:10 -08:00
Victor Marmol
fa00344601
Register inotify watches on all cgroup hierarchies.
...
We used to only register them on the first hierarchy that was created (I
think this was unintentional). This caused some weird edgecases where
we'd try to delete a watch event we didn't create. It is an error we
ignore today (since we fix it in < 60s) but delays our destruction of
the container.
2014-11-21 20:05:50 +08:00
Rohit Jnagal
6885e0c8f2
Merge pull request #320 from vmarmol/docker-raw
...
Let the raw driver handle the /docker container.
2014-11-19 22:40:06 -08:00
Victor Marmol
0e603d2709
Let the raw driver handle the /docker container.
...
This will give us stats on this container and since the /docker UI
endpoint, it no longer serves the purpose it once did.
2014-11-20 06:44:35 +08:00
Victor Marmol
fc622a4b56
Fix raw driver's setting of CPU mask.
...
We used to include it with the trailing "\n" which gave us parsing
errors in the UI (and the reason why they didn't show up in any of those
containers).
2014-11-20 06:32:54 +08:00
Victor Marmol
f97e57df88
Simplify how the Docker containers are handled.
...
This is done by introducting the concept of "namespaces" of container
names. The aliases of a container are under this namespace. Namespace
names are of the form:
//<namespace>/<alias>
This allows us to (within cAdvisor) query all docker containers as
//docker regardless of whether this is a systemd or a non-systemd system.
This does break our ability to handle Docker aliases with the /container
endpoint. I think this is acceptable as our support there was not
consistent between system types.
2014-11-12 18:01:47 -08:00
Vish Kannan
4910466050
Merge pull request #296 from vmarmol/docker
...
Add /docker/ UI endpoint.
2014-11-12 09:48:52 -08:00
Victor Marmol
6e89bdef9f
Add /docker/ UI endpoint.
...
Fixes #294
2014-11-07 08:53:52 -08:00
Vish Kannan
26921c3643
Merge pull request #277 from vmarmol/flat
...
Flatten ContainerStats struct
2014-11-05 11:26:10 -08:00
Victor Marmol
e695c3820e
Only overwrite the Name and Parent in the libcontainer Cgroup.
...
Fixes #287
2014-10-29 11:41:23 -07: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
Abin Shahab
7133ab0f7d
gofmt all files
2014-10-21 05:23:23 +00:00
Abin Shahab
48129c03d1
code review fixes
2014-10-21 05:19:24 +00:00
Victor Marmol
add5147769
Flatten ContainerStats struct
2014-10-20 11:17:20 -07:00
Abin Shahab
e8ea485a0d
Gofmt all files
2014-10-19 23:39:04 +00:00
Abin Shahab
e9d6289964
Added /proc/diskstats
...
Read disk io information from /proc/diskstats.
This will allow the user who provides partition container hints to get partition-specific io (blkio provides io for the container, but at the disk device level).
2014-10-19 23:36:08 +00:00
Rohit Jnagal
b1796da270
Merge pull request #278 from vmarmol/docker-api
...
Add API version v1.2 with /docker endpoint.
2014-10-21 09:58:32 -07:00
Victor Marmol
8aa05b0c39
Add API version v1.2 with /docker endpoint.
...
The /docker endpoint lists all Docker containers under one unified
namespace.
2014-10-20 22:24:01 -07:00
Abin Shahab
6b267575ad
Renamed mount and removed dead code
2014-10-17 16:26:33 +00:00
Abin Shahab
751de4a0c9
code review fixes
2014-10-16 02:55:39 +00:00
Abin Shahab
b8ed0bd0e3
Mounted partitions space usage metrics per container
...
This computes the space usage for mounted partitions. It takes in a list of mounted partitions from containerHints
and computes the device's disk usage(so each mount must be a separate partition). This is useful for users who
mount partitions on containers and store most of the container's persistent data on those partitions.
2014-10-15 19:01:38 +00:00
Abin Shahab
c4d663c6ab
minor fixes and gofmt
2014-10-15 11:10:54 +00:00
Abin Shahab
f170df0a76
Spec consistency
2014-10-15 07:58:58 +00:00
Abin Shahab
9264114895
some more renames
2014-10-14 23:19:46 +00:00
Abin Shahab
4c740cbc54
matches with the full path of the container
2014-10-14 20:01:44 +00:00
Abin Shahab
99d2c31f4d
Renamed container description types
2014-10-14 20:01:44 +00:00
Abin Shahab
07fbd1ddab
Fixed formatting
2014-10-14 20:01:44 +00:00
Abin Shahab
a02b7f1620
Added network stats to raw handler
...
Raw handler now parses an optional json file with the network interface information, and emits network stats.
2014-10-14 20:01:44 +00:00
Abin Shahab
e038729d67
Updated import and comments
2014-10-14 20:01:44 +00:00
Abin Shahab
808fd821ac
NetworkInterface now contains both VethHost and VethChild
2014-10-14 20:01:44 +00:00
Abin Shahab
d009264986
LXC Factory and Handler
...
This factory and handler can retrieve memory, cpu, diskio, and network information of lxc containers.
The handler can be passed additional container information(e.g. network interface) using a cdesc.json file
2014-10-14 20:01:44 +00:00
Vishnu Kannan
0699e7029d
Avoid storage usagge calculations when aufs driver is not being used.
2014-10-07 11:48:10 +00:00
Vishnu Kannan
5e8fecea6a
Adding filesystem usage calculation for docker containers. This patch also includes some internal refactoring.
...
'machine' api now exports a list of all existing 'ext*' filesystems along with the capacity.
2014-10-06 09:51:32 +00:00
Vishnu Kannan
c21ff1f166
Adding a disk usage progress bar.
2014-10-01 00:28:01 +00:00
Vishnu Kannan
b9e70f0240
Filesystem stats are now per container. As of now, fs stats are reported only for the
...
root cgroup.
To make cadvisor detect all the disks, the rootfs of host needs to mounted
inside cadvisor.
2014-09-30 23:48:34 +00:00