Commit Graph

27 Commits

Author SHA1 Message Date
Victor Marmol
1c085a302d Adding the pprof HTTP service to cAdvisor.
This does not consume any resources unless the resources are queried.
2014-09-12 08:40:29 -07:00
Victor Marmol
fd784cbca2 Remove memory storage driver and make empty the default.
This fixes the current cAdvisor HEAD.
2014-09-09 16:57:45 -07:00
Victor Marmol
b80a7481b9 Add string format for port being logged. 2014-09-03 21:38:42 -07:00
Victor Marmol
cf725b2173 Add a /healthz endpoint to cAdvisor.
Fixes #181
2014-08-30 00:52:25 -07:00
Rohit Jnagal
505a8a9138 Merge remote-tracking branch 'upstream/master' into bigquery
storagedriver.go

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-20 23:29:05 +00:00
Rohit Jnagal
cfe839a0cd First version of bigquery backend.
Lot of TODOs. But it should be good enough for anyone who wants to try
it out. Marked experimental.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-20 23:04:05 +00:00
Victor Marmol
eeea467d66 Allow cAdvisor to use as many cores as exist on the machine.
We scale with the number of containers (and cores on the machine) so we
should be able to use more than just one core (the default).
2014-08-11 17:31:05 -07:00
Vishnu Kannan
3e390e0f33 Use glog instead of 'log' library.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-07 18:38:58 +00:00
Victor Marmol
d2397e5ab7 Refactor API http handlers to prepare for versioning. 2014-08-01 10:13:58 -07:00
Victor Marmol
e951d03be6 Implement GeSpec() in the simple raw driver. 2014-07-22 13:51:24 -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
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
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
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
Nan Monnand Deng
bfab17c299 use lmctfy when it is allowed 2014-07-11 18:30:31 -04: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
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
d18ca6fddd storage constructor 2014-07-08 18:02:37 -07:00
Nan Deng
e384a1044e influxdb: Add flags for databases 2014-07-08 16:18:37 -07:00
Nan Deng
4d0b365d43 let users decide how many stats/samples they want to retrieve 2014-07-07 22:04:30 -07:00
Victor Marmol
bb26ed8e8a Adding allow_lmctfy flag to enable running without lmctfy. 2014-06-20 15:29:38 -07:00
Nan Deng
3718b139b3 remove StatsPercentiles in container handler 2014-06-17 12:55:51 -07:00
Nan Deng
a8401c422e stats writers 2014-06-16 14:49:59 -07:00
Victor Marmol
e8ab941730 Add version information for cAdvisor 2014-06-14 15:59:18 -07:00
Nan Monnand Deng
fa0f3efab7 fix the memory leak problem mentioned in #26 2014-06-13 14:02:26 -04:00
Victor Marmol
712f9fb32f Migrating cAdvisor code from lmctfy 2014-06-09 12:12:07 -07:00