Commit Graph

1176 Commits

Author SHA1 Message Date
Rohit Jnagal
5fcad323ca Publish creation event for pre-existing containers on start-up. 2015-05-04 18:37:43 +00:00
Rohit Jnagal
61bbe50a68 Merge pull request #676 from vmarmol/release
Update inotify dependency.
2015-05-04 10:28:03 -07:00
Victor Marmol
1a1a1faa7e Update inotify dependency. 2015-05-04 10:15:21 -07:00
Rohit Jnagal
35e876232a Merge pull request #673 from vmarmol/release
cAdvisor 0.13.0
2015-05-01 14:04:46 -07:00
Victor Marmol
3e79b2ba51 cAdvisor 0.13.0 2015-05-01 13:59:39 -07:00
Rohit Jnagal
58c49b562e Merge pull request #672 from vmarmol/limit
Add flags for event storage limits
2015-05-01 12:09:46 -07:00
Victor Marmol
a7a7aacebc Add flags to customize the events StoragePolicy. 2015-05-01 12:04:11 -07:00
Victor Marmol
28dfea761c Add events StoragePolicy. 2015-05-01 10:42:17 -07:00
Rohit Jnagal
872ab737fb Merge pull request #671 from vmarmol/limit
Add an item limit to TimedStore
2015-05-01 09:23:51 -07:00
Rohit Jnagal
9c92d8ffb3 Merge pull request #669 from vmarmol/labels
Support for container labels
2015-05-01 09:20:42 -07:00
Victor Marmol
1c25746cf0 Limit events to 100,000 of each type.
This gives us a bit over one event per second for one day. Assuming 250
bytes per event, the max memory usage is ~24MiB per event type.
2015-05-01 00:03:41 -07:00
Victor Marmol
734df4d18c Place an absolute limit on elements in TimedStore. 2015-05-01 00:03:41 -07:00
Victor Marmol
1e09f9012d Adding container labels 2015-04-30 23:09:03 -07:00
Victor Marmol
077b324074 Updating DockerClient godep 2015-04-30 23:08:57 -07:00
Victor Marmol
95f1ee9c40 Merge pull request #670 from rjnagal/docker
Add --docker_only flag to enable tracking for only docker containers & root.
2015-04-30 17:27:50 -07:00
Rohit Jnagal
d0424eca0f Add --docker_only flag to enable tracking for only docker containers and root.
This reduces unnecessary load on the system and also cleans up the UI clutter.
Currently defaulted to false.
2015-04-30 23:34:44 +00:00
Rohit Jnagal
04a1aa900c Merge pull request #665 from vmarmol/limit
Limit the number of events stored to 24h.
2015-04-29 15:08:55 -07:00
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
3166552cc4 Merge pull request #664 from vmarmol/ooms
Add /var/log/kern.log to kernel log files.
2015-04-23 19:16:46 -07:00
Victor Marmol
a5d99c3aa8 Add /var/log/kern.log to kernel log files.
This file is present in most distros and provides most of the logs we're
looking for. We support the others if this one is not available.
2015-04-23 19:04:58 -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