Victor Marmol
023520da9b
Add a StatsBuffer circular buffer for ContainerStats.
2014-11-07 15:21:40 -08:00
Victor Marmol
add5147769
Flatten ContainerStats struct
2014-10-20 11:17:20 -07: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
8fd73e7fc0
Adding filesystem stats to db storage drivers. Moved FsStats to info package.
2014-10-01 18:49:10 +00: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
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
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
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
Vishnu Kannan
9bf831aeb2
Set 'time' column in InfluxDB driver to preserve precision of stats even while batching writes to the DB.
2014-08-28 22:50:46 +00:00
Vish Kannan
221ef43c7c
Merge pull request #197 from rjnagal/bigquery
...
Update bigquery README.md for readability and typo fixes
2014-08-27 16:09:57 -07:00
Rohit Jnagal
55485204a7
Update README.md for readability and typo fixes
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-27 15:47:40 -07:00
Vishnu Kannan
1fea109997
Fix bug in influxdb storage driver initialization.
2014-08-27 22:18:27 +00:00
Rohit Jnagal
1ec1968960
Merge remote-tracking branch 'upstream/master' into bigquery
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-26 00:38:58 +00:00
Victor Marmol
401a44bbae
Ignore the InfluxDB tests while they are flaky.
2014-08-25 17:00:37 -07:00
Rohit Jnagal
570b145281
Format fixes and small refactoring.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-25 22:59:10 +00:00
Rohit Jnagal
35325ae920
Fix typo.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-22 19:50:20 +00: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
Vishnu Kannan
45c9fb80e1
Simplify lock handling in influxdb driver.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-20 04:31:13 +00: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
ca9cd37e8a
Reduce influxdb schema to only the values we currently plan to use.
...
We'll re-add new params as they are needed and as we understand influxdb
scalability better.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 22:59:32 +00:00
Rohit Jnagal
42c0943d7e
Fix Cache driver to serve UI.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 19:18:53 +00:00
Rohit Jnagal
67021958b7
Revert changes for smaller test size.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 15:27:42 +00:00
Rohit Jnagal
24a5a6aa82
Resolve test conflicts on #167 .
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-09 15:13:22 +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
Vish Kannan
6c2694a53b
Merge pull request #105 from monnand/re-enable-influxdb
...
re-enable unit tests for influxdb
2014-08-06 16:46:21 -07: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
7d9015f20b
in memory cache for storage
2014-07-23 14:57:18 -07:00
Nan Deng
f1a9a72146
more info from unit tests
2014-07-22 16:02:29 -07:00
Nan Deng
290f57dd0a
re-enable unit tests for influxdb
2014-07-22 14:12:33 -07:00
Victor Marmol
7e380f6944
Skip influxdb tests for now.
2014-07-22 11:36:35 -07:00
Nan Monnand Deng
a38d60ac54
influxdb changed their API, again.
2014-07-19 01:36:47 -04:00
Nan Deng
2d3f8d9f0f
re-enable influxdb
2014-07-17 14:36:19 -07:00
Nan Deng
bdd2b021c3
remove support for influxdb until influxdb/influxdb#756 get fixed
2014-07-16 18:00:18 -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
Victor Marmol
46a9792ca8
Merge pull request #76 from monnand/unit-test-manager
...
Unit test manager
2014-07-07 16:56:39 -07:00
Nan Deng
a96e4e12e2
style
2014-07-07 16:10:09 -07:00
Nan Deng
842d18c6e6
mock storage driver
2014-07-03 21:03:20 -07:00
Nan Deng
018d514981
mock container
2014-07-03 21:03:04 -07:00
Nan Deng
a1cb5bf4ef
allow the storage to store some inaccurate time
2014-07-03 20:55:56 +00:00
Nan Deng
05b997d6ec
comment
2014-07-02 16:23:31 -07:00
Nan Deng
4115f73343
type check
2014-07-02 16:20:05 -07:00
Nan Deng
84fefcdab9
use const
2014-07-02 16:16:51 -07:00
Nan Deng
fceb2707dd
percentiles
2014-07-02 16:06:27 -07:00
Nan Deng
41dcf6d42d
no curry
2014-07-02 15:20:21 -07:00
Nan Deng
562a150592
more on test
2014-07-02 15:12:37 -07:00
Nan Deng
92c34ae490
check if the stats is valid
2014-07-02 14:57:23 -07:00
Nan Deng
795b451288
tested on multi-machine multi-container scenario
2014-07-02 14:24:45 -07:00
Nan Deng
e4c439ce25
passed all existing unit tests
2014-07-02 14:05:06 -07:00
Nan Deng
4d9f9d7aaf
more unit tests. passed
2014-07-02 11:19:38 -07:00
Nan Deng
7bd8cc2c0b
Passed first unit test. Waiting for a fix for influxdb/influxdb-go#12
2014-07-02 11:15:48 -07:00
Nan Deng
b94c9936d0
influxdb
2014-07-01 19:21:43 -07:00
Nan Deng
ecf2346443
fix a bug in storage unit tests
2014-06-24 15:13:18 -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
43346e5f29
fix typo
2014-06-19 14:19:44 -07:00
Nan Deng
3f6fa477a4
defer unlock
2014-06-18 16:34:47 -07:00
Nan Deng
77dc470f54
increase the coverage
2014-06-18 13:49:23 -07:00
Nan Deng
05ce0c01e3
fix a deadlock bug along with unit tests
2014-06-18 13:43:08 -07:00
Nan Deng
83d12ed5fa
check error on AddStats()
2014-06-18 12:01:24 -07:00
Nan Deng
7f542f2952
do not always allocate a new slice
2014-06-18 11:45:24 -07:00
Nan Deng
bdc3ae7120
docs
2014-06-18 11:18:21 -07:00
Nan Deng
21cf8472a0
remove constraints
2014-06-18 11:17:35 -07:00
Nan Deng
7258101720
add doc
2014-06-17 21:09:49 -07:00
Nan Deng
9c54221a54
defines the order of the returned recent stats
2014-06-17 21:07:40 -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
ca65e11486
storage unit tests
2014-06-17 15:12:35 -07:00
Nan Deng
7dd1f031a6
unit tests for storage driver implementations
2014-06-17 14:40:11 -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
Nan Deng
cbc266bb64
comment
2014-06-16 18:03:01 -07:00
Nan Deng
5f45128c31
container name should be specified
2014-06-16 18:03:01 -07:00
Nan Deng
6e98c92693
changing info package to work with storage drivers.
2014-06-16 18:03:01 -07:00
Nan Deng
a6763f4525
gofmt -r "WriteStats->AddStats"
2014-06-16 14:55:39 -07:00
Nan Deng
e593dd4823
remove storage factory
2014-06-16 14:51:35 -07:00
Nan Deng
dc9f4422b4
rename
2014-06-16 14:51:35 -07:00
Nan Deng
750b5b464e
storage
2014-06-16 14:49:09 -07:00