Commit Graph

25 Commits

Author SHA1 Message Date
Katie Knister
86fc57b5ef Final changes to circular buffer 2014-12-15 15:50:34 -08:00
Victor Marmol
023520da9b Add a StatsBuffer circular buffer for ContainerStats. 2014-11-07 15:21:40 -08:00
Vishnu Kannan
7ed645f004 Avoid compiling cadvisor statically for the docker image by deriving the image from a stripped down busybox image.
Log failures encountered while dumping to influxdb
Handle critical failures in cadvisor gracefully without getting stuck.
2014-09-19 17:23:45 +00:00
Victor Marmol
42add2409a Removing sampling and percentiles from interface.
Also removing all implementations.
2014-09-15 14:13:07 -07:00
Nan Monnand Deng
60a1b6a900 supports backend storage in in-memory storage 2014-09-05 13:27:26 -04:00
Vishnu Kannan
9b5b221a57 Buffer stats in influxdb driver before writing to the Db. The buffering duration
is configurable via a flag and is set to 60 seconds by default.
The storage driver test code has been refactored a bit to help test the new buffering
feature and will be future proof.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-19 19:59:33 +00:00
Rohit Jnagal
10d631be6d Factor out data comparator for storage tests.
For influxdb, we are planning to export lesser data. Having a separate
comparator will let us reuse the same tests.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 01:28:27 +00:00
Nan Deng
55b65f4eb9 Retrieve 0 stats/samples when user asked for zero stats/samples 2014-07-23 17:28:41 -07:00
Nan Deng
b94c9936d0 influxdb 2014-07-01 19:21:43 -07:00
Nan Deng
a0071a7f7d comment. 2014-06-19 14:48:21 -07:00
Nan Deng
e9111b5527 stats returned in chronological order 2014-06-19 14:35:55 -07:00
Nan Deng
3f6fa477a4 defer unlock 2014-06-18 16:34:47 -07:00
Nan Deng
05ce0c01e3 fix a deadlock bug along with unit tests 2014-06-18 13:43:08 -07:00
Nan Deng
7f542f2952 do not always allocate a new slice 2014-06-18 11:45:24 -07:00
Nan Deng
20b13c4cfc add unit test 2014-06-17 20:59:33 -07:00
Nan Deng
cf8257cd70 fix a bug in memory storage and add a new unit test 2014-06-17 20:54:48 -07:00
Nan Deng
e412c042d3 storage unit test percentiles 2014-06-17 20:33:13 -07:00
Nan Deng
90ceeacda3 use a helper function 2014-06-17 15:49:29 -07:00
Nan Deng
d4af5388a9 separate tests 2014-06-17 15:33:56 -07:00
Nan Deng
14581757e7 unit test for memory storage 2014-06-17 15:22:11 -07:00
Victor Marmol
21869c563e Merge pull request #62 from monnand/storage-unit-tests
unit tests for storage driver implementation
2014-06-17 15:14:28 -07:00
Nan Deng
a010934299 Close() error 2014-06-17 14:33:32 -07:00
Nan Deng
e1dcc93231 use in memory storage to do stats 2014-06-17 13:13:50 -07:00
Nan Deng
00f17b5068 rename 2014-06-16 20:30:37 -07:00
Nan Deng
d4201f66e0 in memory storage 2014-06-16 18:19:14 -07:00