Commit Graph

115 Commits

Author SHA1 Message Date
Rohit Jnagal
b7ee40566c Initial client library for statsd backend.
Restricted to supporting just gauges now as counters or timing are not very useful for cAdvisor.
2015-05-27 17:48:09 +00:00
superzhaoyy
43fe9556b1 Add the support for redis in cAdvisor's storage 2015-05-13 00:03:14 -04:00
Victor Marmol
734df4d18c Place an absolute limit on elements in TimedStore. 2015-05-01 00:03:41 -07:00
Victor Marmol
c72445a698 Use generic TimedStore for stats storage 2015-04-23 11:43:32 -07:00
Victor Marmol
08186b6297 Rename StatsBuffer to TimedStore in utils 2015-04-23 11:12:09 -07:00
Victor Marmol
d9f8a0920c Move StatsBuffer to be time-based.
It now keeps stats for a certain amount of time before expiring them. It
used to keep a certain number of stats instead.
2015-04-22 09:43:30 -07:00
Victor Marmol
a4609fcec7 Remove unused FirstN() from StatsBuffer 2015-04-20 19:17:31 -07:00
James DeFelice
b173a1e44c pointers that reference addresses of the internal circular buffer should not escape 2015-04-04 12:39:09 +00:00
Victor Marmol
bacf817e6a If start and end specified, ignore maxResults. 2015-03-25 13:18:54 -07:00
Victor Marmol
bfaf70b255 Merge pull request #614 from rjnagal/master
Fix table length for bigquery storage.
2015-03-24 18:04:16 -07:00
Rohit Jnagal
a37b596a45 Fix table length for bigquery storage. 2015-03-24 18:18:42 +00:00
kargakis
3ccd56d848 Use new oauth2 package
Fixes #608
2015-03-24 10:54:38 +01:00
Rohit Jnagal
872546ba3a Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
Victor Marmol
38203d1d49 Break storage/memory from the StorageDriver API.
It is not a StorageDriver, rather it is the always-existing memory
storage.
2015-02-22 19:07:11 -08:00
Victor Marmol
3b6ac51f6f Add InTimeRange() to StatsBuffer.
This will allow us to accept queries over a narrower window of time.
2015-02-18 12:42:10 -08:00
Rohit Jnagal
667a8e0fd1 Rename load to load average.
Load is now LoadAverage. Also added comments about smoothing interval.
2015-01-28 00:37:45 +00:00
Rohit Jnagal
ed155019ac Verify and fix error message nit :) 2015-01-14 01:15:13 +00:00
Rohit Jnagal
9a4e6304b8 Add missing copyright notices.
We'll add a travis rule when this is in.
2015-01-09 00:06:04 +00:00
Victor Marmol
643d647761 Gofmt all files. 2015-01-05 11:26:23 -08:00
Katie Knister
86fc57b5ef Final changes to circular buffer 2014-12-15 15:50:34 -08:00
Vishnu Kannan
0e13061cfa Fix issue in influxdb driver that prevented container name and hostname from being populated. 2014-11-18 19:13:54 +00:00
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