Commit Graph

1157 Commits

Author SHA1 Message Date
Victor Marmol
62d670d386 Limit the number of events stored to 24h.
There is a TODO to make this configurable.
2015-04-25 18:04:52 -07:00
Rohit Jnagal
8197d35ea2 Merge pull request #663 from vmarmol/limit
Generalize StatsBuffer into TimedStore
2015-04-23 12:26:19 -07:00
Victor Marmol
c72445a698 Use generic TimedStore for stats storage 2015-04-23 11:43:32 -07:00
Victor Marmol
8d2f81e73f Make the TimedStore generic.
Accepts a timestamp and an interface to store and use.
2015-04-23 11:34:56 -07:00
Victor Marmol
08186b6297 Rename StatsBuffer to TimedStore in utils 2015-04-23 11:12:09 -07:00
Rohit Jnagal
a32015579e Merge pull request #661 from vmarmol/limit
Move StatsBuffer to be time-based
2015-04-22 09:51:04 -07:00
Victor Marmol
5fd8273806 Allow customizing storage duration. 2015-04-22 09:43:30 -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
Rohit Jnagal
2ef063d404 Merge pull request #662 from vmarmol/check
Eliminate race in integration test
2015-04-22 09:37:49 -07:00
Victor Marmol
fc635c1cde Watch for deletion event before the container runs.
This eliminates a race.
2015-04-22 09:21:53 -07:00
Rohit Jnagal
9a0b9b4f4a Merge pull request #658 from vmarmol/events2
Fix subcontainer queries in subcontainers.
2015-04-21 13:58:54 -07:00
Victor Marmol
f0ea740328 Fix subcontainer queries in subcontainers.
Queries for root were not being correctly diagnosed.
2015-04-21 08:22:47 -07:00
Rohit Jnagal
229b39de2e Merge pull request #659 from vmarmol/remove-firstn
Remove unused FirstN() from StatsBuffer
2015-04-20 19:32:31 -07:00
Victor Marmol
a4609fcec7 Remove unused FirstN() from StatsBuffer 2015-04-20 19:17:31 -07:00
Rohit Jnagal
99aa5c511b Merge pull request #657 from vmarmol/events
Handle container names in resource path
2015-04-20 13:30:04 -07:00
Victor Marmol
ed6dd78996 Handle container names in resource path 2015-04-20 11:27:39 -07:00
Rohit Jnagal
44848b924c Merge pull request #656 from vmarmol/events
Use strings for EventType enum
2015-04-20 09:55:35 -07:00
Victor Marmol
aa6e9a3d5b Use strings for EventType enum 2015-04-20 09:16:00 -07:00
Rohit Jnagal
259f7465df Merge pull request #653 from kateknister/apiBranch
Added container_name field to event API
2015-04-18 22:56:21 -07:00
Katie Knister
141b9f3809 Added container_name field to event API 2015-04-15 16:51:15 -07:00
Rohit Jnagal
45bae27bd3 Merge pull request #651 from vmarmol/release
cAdvisor 0.12.0
2015-04-15 16:46:42 -07:00
Victor Marmol
24040118a1 Merge pull request #652 from rjnagal/docker
Make cpu load reader flag controlled.
2015-04-15 16:45:33 -07:00
Rohit Jnagal
64b105db5a Make cpu load reader flag controlled. 2015-04-15 23:37:36 +00:00
Rohit Jnagal
6c284efb09 Merge pull request #650 from vmarmol/events
Add oom_kill_events parameter to API
2015-04-15 16:24:48 -07:00
Victor Marmol
886b54793f cAdvisor 0.12.0 2015-04-15 15:54:17 -07:00
Victor Marmol
a45d396804 Add oom_kill_events parameter to API 2015-04-15 15:49:11 -07:00
Rohit Jnagal
0971262de0 Merge pull request #649 from vmarmol/events
Use formatting glog.Info
2015-04-15 14:05:46 -07:00
Victor Marmol
82034c1fb0 Use formatting glog.Info 2015-04-15 13:55:54 -07:00
Rohit Jnagal
25f3124155 Merge pull request #648 from vmarmol/events
Split OOM event into OOM and OOM Kill
2015-04-15 13:49:45 -07:00
Victor Marmol
fd1ff04f7f Split OOM event into OOM and OOM Kill.
This will allow to watch and differentiate that the OOM victim may not
equal the OOM'd container.
2015-04-15 13:30:08 -07:00
Victor Marmol
32b33b215a Add support for identifying OOM victim. 2015-04-15 13:09:22 -07:00
Rohit Jnagal
a59bfbbd5c Merge pull request #647 from kateknister/master
Reenable netlink cpu tracking
2015-04-14 14:19:02 -07:00
Katie Knister
00ce5ca367 Reenable netlink cpu tracking 2015-04-14 14:07:19 -07:00
Rohit Jnagal
9724c705a7 Merge pull request #646 from vmarmol/log
Lowering log levels.
2015-04-13 15:32:31 -07:00
Victor Marmol
11462d80bc Lowering log levels.
Reduce common logging using Kubernetes logging standards.
2015-04-13 15:05:41 -07:00
Victor Marmol
417cd5ead2 Merge pull request #644 from rjnagal/docker
Fix networking stats by switching Tx and Rx stats.
2015-04-13 10:28:05 -07:00
Rohit Jnagal
dfcc05a953 Fix networking stats by switching Tx and Rx stats.
A better fix is to directly use stats collected by libcontainer.
2015-04-13 17:01:06 +00:00
Victor Marmol
81e099aae6 Merge pull request #639 from rjnagal/docker
Remove sched debug based load implementation.
2015-04-10 14:56:53 -07:00
Rohit Jnagal
ab07169113 Merge pull request #637 from vmarmol/libcontainer
Rebase cAdvisor to the new libcontainer.
2015-04-10 14:56:08 -07:00
Victor Marmol
64c0d3d8c3 Migrating cAdvisor to new libcontainer.
Backwards compatability is maintained with older versions of
libcontainer.
2015-04-10 14:51:29 -07:00
Victor Marmol
e97e203d76 Adding translation layer for pre-API libcontainer configs. 2015-04-10 14:51:29 -07:00
Victor Marmol
a7d52293c8 Updating libcontianer dependency 2015-04-10 14:51:29 -07:00
Rohit Jnagal
aea95e3228 Remove sched debug based load implementation. 2015-04-10 21:50:55 +00:00
Victor Marmol
a86aea117b Merge pull request #642 from kateknister/master
Added todo for oom integration test
2015-04-10 14:12:29 -07:00
Katie Knister
fc63243801 Added todo for oom integration test 2015-04-10 14:10:25 -07:00
Rohit Jnagal
0caed52d0c Merge pull request #641 from kateknister/master
Improved event integration tests
2015-04-10 13:57:36 -07:00
Katie Knister
ee4bdc2698 Improvements to events integration test 2015-04-10 13:33:22 -07:00
Vish Kannan
a1c688751c Merge pull request #640 from vmarmol/events
Make EventData a concrete type.
2015-04-09 15:28:02 -07:00
Victor Marmol
a21bf2555e Make EventData a concrete type.
Having this as an interface was giving us a lot of problems with
unmarshaling. Made into a union of concrete types.
2015-04-09 15:21:24 -07:00
Rohit Jnagal
e32b661ac3 Merge pull request #629 from kateknister/master
Preliminary integration tests for getting events
2015-04-08 17:26:25 -07:00