Commit Graph

2221 Commits

Author SHA1 Message Date
Vishnu Kannan
abfcd4923a Adding utils package 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
Vish Kannan
bc23a92932 Merge pull request #102 from vmarmol/fix2
Skip influxdb tests for now.
2014-07-22 11:57:30 -07:00
Victor Marmol
7e380f6944 Skip influxdb tests for now. 2014-07-22 11:36:35 -07:00
Victor Marmol
6d353f6833 Remove unused TODO.txt. 2014-07-22 11:28:05 -07:00
Victor Marmol
2c12f76e4a Merge pull request #99 from vmarmol/raw
Enable the simple raw driver.
2014-07-22 08:50:01 -07:00
Victor Marmol
a187d74e5b Enable the simple raw driver.
It doesn't yet get the spec, but it is functional enough to use.
This removed the registration of lmctfy, the code will be removed in a
future PR once raw GetSpec() is complete.
2014-07-21 19:02:07 -07:00
monnand
8c890bf447 Merge pull request #98 from vmarmol/fixes
Remove cpuset cgroup for listing on raw driver.
2014-07-21 21:30:55 -04:00
Victor Marmol
3854ea6970 Remove cpuset cgroup for listing on raw driver.
Also a couple of fixes/simplifications.
2014-07-21 18:00:55 -07:00
Victor Marmol
aa7154c5e2 Merge pull request #97 from monnand/influxdb-pkgname
influxdb changed their API, again.
2014-07-21 08:18:11 -07:00
Nan Monnand Deng
a38d60ac54 influxdb changed their API, again. 2014-07-19 01:36:47 -04:00
Victor Marmol
03b36ea461 Merge pull request #95 from monnand/influxdb-enable
re-enable influxdb
2014-07-17 14:54:16 -07:00
Nan Deng
2d3f8d9f0f re-enable influxdb 2014-07-17 14:36:19 -07:00
Victor Marmol
2700b4bcb0 Merge pull request #94 from vmarmol/systemd2
Implement ListContainers and no-op GetSpec().
2014-07-17 14:31:48 -07:00
Victor Marmol
4c52e2ea1c Implement ListContainers and no-op GetSpec(). 2014-07-17 14:22:37 -07:00
monnand
d1dc27bf43 Merge pull request #93 from vmarmol/systemd
Initial version of the raw container driver.
2014-07-17 14:30:46 -04:00
Victor Marmol
a8863e6367 Initial version of the raw container driver. 2014-07-17 10:45:59 -07:00
Victor Marmol
b1d9996cca Merge pull request #91 from monnand/rm-influxdb
Remove support for influxdb until influxdb/influxdb#756 get fixed
2014-07-16 18:06:58 -07:00
Nan Deng
bdd2b021c3 remove support for influxdb until influxdb/influxdb#756 get fixed 2014-07-16 18:00:18 -07:00
monnand
033ae4f7bd Merge pull request #90 from vmarmol/systemd
Change ContainerHandlerFactories to decide what containers they support.
2014-07-16 20:39:49 -04:00
Victor Marmol
1636c3e759 Change ContainerHandlerFactories to decide what containers they support.
This allows a ContainerHandlerFactory to register a CanHandle() function
which is called to determine whether the factory can handle a particular
container.

This commit disables being able to run cAdvisor without lmctfy. This
should be enabled again with a "no-op" global factory which I would like
to do in a separate PR.
2014-07-16 16:48:45 -07:00
monnand
e2ff7dbb13 Merge pull request #88 from vmarmol/smaller
Make cAdvisor Docker image much smaller.
2014-07-16 14:12:54 -04:00
Victor Marmol
93754d77ee Make cAdvisor Dockerimage much smaller.
Remove old Dockerfiles for deployment and create a new one that only
includes the statically linked binaries we need. This creates an image
that is ~22MB in size.
2014-07-16 10:01:00 -07:00
Victor Marmol
dbdf92359a Merge pull request #87 from monnand/container-info-eq
Eq() method for ContainerInfo
2014-07-15 13:35:39 -07:00
Nan Deng
95889f3c99 change client's unit test to use ContainerInfo.Eq() 2014-07-15 13:24:21 -07:00
Nan Deng
d7b1b9c849 Eq() for ContainerInfo 2014-07-15 13:21:15 -07:00
monnand
b13ed41a09 Merge pull request #86 from vmarmol/master
Updating version to 0.1.3.
2014-07-15 14:19:29 -04:00
Victor Marmol
9e8fb8da6d Updating version to 0.1.3. 2014-07-14 18:36:57 -07:00
monnand
71d4d9c609 Merge pull request #85 from vmarmol/master
Handle systemd when it is present.
2014-07-14 19:03:37 -04:00
Victor Marmol
c4c604c278 Handle systemd when it is present. 2014-07-14 10:00:21 -07:00
Victor Marmol
8cd875cc42 Merge pull request #84 from monnand/use-lmctfy
use lmctfy when it is allowed
2014-07-11 15:40:19 -07:00
Nan Monnand Deng
bfab17c299 use lmctfy when it is allowed 2014-07-11 18:30:31 -04:00
Victor Marmol
814af08f24 Merge pull request #83 from monnand/neg-val
Fix a bug when using influxdb: GUI shows negative CPU usage
2014-07-11 15:18:34 -07:00
Nan Monnand Deng
8c4a1ef81d Requires storage driver to return stats in time increasing order. Change influxdb driver to return stats in correct order. 2014-07-11 22:09:12 +00:00
monnand
f65c34827a Merge pull request #82 from vmarmol/master
Adding changelog.
2014-07-10 18:55:01 -04:00
Victor Marmol
5d811f443d Adding changelog. 2014-07-10 15:50:34 -07:00
Victor Marmol
069cff84e2 Merge pull request #79 from monnand/query-parameter
User specified parameters for container info.
2014-07-10 12:36:33 -07:00
Nan Deng
d5279b54b2 remove some commented out code 2014-07-10 11:21:37 -07:00
Nan Deng
c7f69c2382 move function into test 2014-07-10 10:41:20 -07:00
Victor Marmol
f33c8ae591 Merge pull request #80 from monnand/influxdb-2
Influxdb: Part 2
2014-07-09 13:22:15 -07:00
Nan Deng
d5037d162e flags 2014-07-09 11:55:12 -07:00
Nan Deng
135ddd8f01 s/db/storage_driver/ 2014-07-08 18:15:36 -07:00
Nan Deng
942236adde docs 2014-07-08 18:11:35 -07:00
Nan Deng
6818ac9b9f gofmt -r "ContainerInfoQuery->ContainerInfoRequest" 2014-07-08 18:04:57 -07:00
Nan Deng
6a5a395fbd fix typo 2014-07-08 18:04:13 -07:00
Nan Deng
d18ca6fddd storage constructor 2014-07-08 18:02:37 -07:00
monnand
8519266e25 Merge pull request #81 from vmarmol/update
Updating cAdvisor to version 0.1.2.
2014-07-08 20:37:00 -04:00
Nan Deng
c1ecbc94a6 fmt.Errorf() 2014-07-08 17:30:35 -07:00
Nan Deng
d8acc13240 docs 2014-07-08 17:21:46 -07:00
Nan Deng
d8e9f8e5a9 gofmt -r "FillWithDefaultValues->FillDefaults" 2014-07-08 17:20:47 -07:00