Commit Graph

600 Commits

Author SHA1 Message Date
Victor Marmol
c326475ede Remove unused filter ContainerHandlers. 2014-09-18 12:52:09 -07:00
Victor Marmol
b63d61ca97 Use inotify to watch for new containers.
This reduces cAdvisor CPU usage below 1% in my CoreOS system.

We also reduce global housekeeping to every 60s as a fallback in case we
miss an event.
2014-09-18 12:52:09 -07:00
Rohit Jnagal
9eab3881bb Merge pull request #239 from vmarmol/deps
Adding all dependencies to Godeps.
2014-09-18 10:36:10 -07:00
Victor Marmol
ad47c699bf Adding all dependencies to Godeps. 2014-09-17 21:31:13 -07:00
Vish Kannan
58e019028d Merge pull request #235 from vmarmol/rm
Remove remaining parts of samples and percentiles.
2014-09-17 12:53:34 -07:00
Vish Kannan
9798f4909f Merge pull request #237 from vmarmol/dyn
Make dynamic housekeeping flag configurable
2014-09-17 12:51:45 -07:00
Victor Marmol
621bb22eeb Make dynamic housekeeping flag configurable 2014-09-16 11:04:45 -07:00
Rohit Jnagal
d5e3da5dc5 Merge pull request #234 from vmarmol/obs
Remove unused file
2014-09-15 15:03:04 -07:00
Victor Marmol
1f5349821b Remove unused file. 2014-09-15 14:59:20 -07:00
Victor Marmol
9dd8621686 Remove remaining parts of samples and percentiles. 2014-09-15 14:38:51 -07:00
Rohit Jnagal
e4b28d9d78 Merge pull request #233 from vmarmol/master
Removing sampling and percentiles from interface.
2014-09-15 14:20:25 -07:00
Victor Marmol
42add2409a Removing sampling and percentiles from interface.
Also removing all implementations.
2014-09-15 14:13:07 -07:00
Victor Marmol
0003b89fcd Merge pull request #223 from vmarmol/dynamic-housekeeping
Make housekeeping interval dynamic, fist signal is resource usage.
2014-09-12 14:52:37 -07:00
Victor Marmol
f0e05218b9 Merge pull request #227 from vmarmol/ui2
Cleanup graph JS and don't show values below 0.
2014-09-12 14:52:10 -07:00
Rohit Jnagal
026cc165e1 Merge pull request #229 from vmarmol/pprof
Adding the pprof HTTP service to cAdvisor.
2014-09-12 14:36:08 -07:00
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
Rohit Jnagal
4397c6ed32 Merge pull request #228 from vmarmol/update-libcontainer
Updating libcontainer version.
2014-09-10 18:18:20 -07:00
Victor Marmol
b22bfa32f0 Updating libcontainer version.
This includes a fix which reduces CPU usage by ~30%.
2014-09-10 18:01:45 -07:00
Victor Marmol
467b6f33db Cleanup graph JS and don't show values below 0. 2014-09-10 15:04:28 -07:00
Victor Marmol
4e028d7995 Make housekeeping interval dynamic, fist signal is resource usage.
If no resources are used by the container since the last housekeeping,
we double the housekeeping interval until --max_housekeeping_interval.
If usage was detected, we drop it back to the baseline
(--housekeeping_interval).

From my tests this reduces CPU usage in CoreOS from ~8% to ~3% with no
real loss of accuracy.

Fixes #159
2014-09-10 15:01:54 -07:00
Vish Kannan
4acd49ec83 Merge pull request #222 from vmarmol/variable-housekeeping
Prepare housekeeping interval to be dynamic.
2014-09-09 20:15:38 -07:00
Vish Kannan
708a6796cf Merge pull request #221 from vmarmol/fix
Remove memory storage driver and make empty the default.
2014-09-09 20:02:48 -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
1bdef9797b Prepare housekeeping interval to be dynamic.
Change housekeeping to be from a fixed interval to a possibly varied
interval decided by nextHousekeeping().
2014-09-09 14:00:30 -07:00
Victor Marmol
5200138f3e Merge pull request #218 from monnand/write-only-storage
Write only storage: Part 1
2014-09-08 08:47:23 -07:00
Nan Monnand Deng
74abe4c152 parenthesis. 2014-09-06 15:03:12 -04:00
Nan Monnand Deng
719b9ead20 remove string rep of time 2014-09-05 18:14:02 -04:00
Nan Monnand Deng
f32457747d glog.Infof() 2014-09-05 17:42:58 -04:00
Nan Monnand Deng
f3f098f3d2 delete data from influxdb after unit test 2014-09-05 17:39:34 -04:00
Nan Monnand Deng
b9f68da4f1 remove debug code 2014-09-05 17:38:34 -04:00
Nan Monnand Deng
5bc9425c54 panic->error 2014-09-05 17:37:55 -04:00
Victor Marmol
dc292daaf2 Merge pull request #219 from vmarmol/release
Updating CHANGELOG and version for 0.3.0 release.
2014-09-05 14:01:45 -07:00
Victor Marmol
29bbe613dc Updating CHANGELOG and version for 0.3.0 release. 2014-09-05 13:57:16 -07:00
Rohit Jnagal
f2745aa588 Merge pull request #215 from vmarmol/docker-lxc
Only register the Docker driver in systems using libcontainer.
2014-09-05 13:47:15 -07:00
Victor Marmol
f9c45094ab Only register the Docker driver in systems using libcontainer. 2014-09-05 13:37:18 -07:00
monnand
e870cfa66f Merge pull request #217 from rjnagal/bigquery
Improve error reporting on bigquery row insertion failure.
2014-09-05 15:46:20 -04:00
Nan Monnand Deng
260625f421 remove Samples() Percentiles() from bigquery storage driver 2014-09-05 15:35:31 -04:00
Nan Monnand Deng
9d6235f4d0 remove Samples() Percentiles() from influxdb driver 2014-09-05 15:33:25 -04:00
Rohit Jnagal
1cdf355c25 Improve error reporting on bigquery row insertion failure.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-09-05 19:29:44 +00:00
Nan Monnand Deng
60a1b6a900 supports backend storage in in-memory storage 2014-09-05 13:27:26 -04:00
Rohit Jnagal
9c99d76e77 Merge pull request #214 from vmarmol/ui
Don't try to draw graphs we don't have data for.
2014-09-05 09:37:00 -07:00
Victor Marmol
0c6fb6cb87 Don't try to draw graphs we don't have data for.
This was specifically a problem with network. We were throwing JS
errors.
2014-09-04 18:52:07 -07:00
Victor Marmol
6ed452f328 Merge pull request #192 from caglar10ur/master
Make (memory) limits human readable
2014-09-04 08:41:13 -07:00
Vish Kannan
c666bde6b2 Merge pull request #211 from vmarmol/ui
Don't assume 1s between samples in the UI.
2014-09-03 22:33:52 -07:00
Vish Kannan
ca0f449038 Merge pull request #212 from vmarmol/no-extra
Add string format for port being logged.
2014-09-03 22:31:56 -07:00
Vish Kannan
97b583f0cf Merge pull request #213 from vmarmol/faster-start
Move the initial housekeeping tick to the housekeeping thread.
2014-09-03 22:31:29 -07:00
Victor Marmol
c692e9388d Move the initial housekeeping tick to the housekeeping thread.
This significantly reduces startup time.
2014-09-03 21:45:57 -07:00
Victor Marmol
b80a7481b9 Add string format for port being logged. 2014-09-03 21:38:42 -07:00
Victor Marmol
9f0fb0432c Merge pull request #210 from vmarmol/master
Updating libcontainer to latest.
2014-09-03 21:36:50 -07:00
Victor Marmol
613b59f8ce Don't assume 1s between samples in the UI.
Fixes #155
2014-09-03 19:01:51 -07:00