Rohit Jnagal
5e10989a78
Add an api to support ps/top.
2015-05-12 00:06:47 +00:00
Rohit Jnagal
e68b6cbb25
Add 'all_events' option to the api to report all event types.
2015-05-06 16:45:13 +00:00
Victor Marmol
ed6dd78996
Handle container names in resource path
2015-04-20 11:27:39 -07:00
Katie Knister
141b9f3809
Added container_name field to event API
2015-04-15 16:51:15 -07:00
Victor Marmol
a45d396804
Add oom_kill_events parameter to API
2015-04-15 15:49:11 -07:00
Victor Marmol
11462d80bc
Lowering log levels.
...
Reduce common logging using Kubernetes logging standards.
2015-04-13 15:05:41 -07:00
Katie Knister
ee4bdc2698
Improvements to events integration test
2015-04-10 13:33:22 -07:00
Victor Marmol
8af583c35e
Change historical to stream so it can default to false.
...
Defaulting to non-watch makes it easy to query in a browser and curl.
2015-04-01 10:05:05 -07:00
Victor Marmol
4cb69036f8
Move Event to info since it is a public API object.
2015-04-01 09:17:43 -07:00
Rohit Jnagal
bb77a9b0e8
Add events endpoint to v2.0.
2015-03-28 04:48:59 +00:00
Victor Marmol
1d58fa9c5d
v2.0 API does not depend on v1.x.
...
The v2.0 API is separate and will evolve to have separate structured
from v1.x.
2015-03-27 16:33:48 -07:00
Victor Marmol
fae2234846
Merge pull request #576 from kateknister/master
...
Provides a way to remove unused channels from an eventHandler's watchers list
2015-03-25 17:29:01 -07:00
Katie Knister
3c7e67991d
Created a way to remove unused channels from an eventHandler's watchers list
2015-03-25 16:36:48 -07:00
Victor Marmol
814c65059a
Document and specify defaults for ContainerRequestInfo.
2015-03-25 13:15:10 -07:00
Rohit Jnagal
6db3717426
Add recursive and type options (raw/docker) to spec and summary endpoints.
...
spec, stats, and summary now all support the same options (except count,
which is only parsed for stats).
2015-03-18 18:44:59 +00:00
Victor Marmol
e80e345cc1
Merge pull request #588 from rjnagal/version
...
Add /machine endpoint for 2.0
2015-03-13 16:28:30 -07:00
Rohit Jnagal
9df3ea740e
Add /machine endpoint for 2.0
...
Only difference from v1 /machine is that both h/w and s/w state is included.
2015-03-13 23:26:10 +00:00
Victor Marmol
b4f6712f6e
Merge pull request #589 from rjnagal/docker
...
Add recursive option for /stats endpoint.
2015-03-13 16:13:27 -07:00
Rohit Jnagal
1b3de3a16e
Add recursive option for /stats endpoint.
2015-03-13 23:08:15 +00:00
Vish Kannan
588b1498ac
Merge pull request #587 from rjnagal/docker
...
Add alias and namespace information to /spec endpoint
2015-03-13 14:22:56 -07:00
Rohit Jnagal
53d25cc90e
Add alias and namespace information to /spec endpoint
2015-03-13 21:13:23 +00:00
Victor Marmol
7d27bf2f6f
Merge pull request #586 from rjnagal/docker
...
Add handling of docker container to 2.0 stats API.
2015-03-13 12:03:50 -07:00
Rohit Jnagal
7a6f5ddaaf
Add handling of docker container to 2.0 stats API.
...
Next: Apply similar handling to spec and summary endpoints.
2015-03-13 18:57:08 +00:00
Victor Marmol
05b16c6063
Merge pull request #578 from rjnagal/docker
...
WIP: Add stats API for 2.0.
2015-03-12 15:08:16 -07:00
Rohit Jnagal
2e2a31bea2
WIP: Add stats API for 2.0.
...
First cut on 2.0 stats API. Main change in returned stats is that presence checks (eg. HasCPU) are embedded in each stat.
Added support to handle querying container with name.
Current syntax:
/stats?name=/&count=1,
/stats?name=docker/928c058ce260ac2a55972b18cb991fa0475fbbb7bc15bd295e62b76964d05fe6 [default count: 64]
Other handlers to include: dockerid, dockeralias. We can make subcontainers inclusion as an option too.
2015-03-12 21:42:40 +00:00
Victor Marmol
5eeb6fdd40
Merge pull request #574 from kateknister/master
...
Fixed some bugs in oomparser streaming
2015-03-11 09:14:07 -07:00
Victor Marmol
8ae06b5c3d
Merge pull request #573 from rjnagal/docker
...
Add /storage endpoint to 2.0 API.
2015-03-10 21:48:51 -07:00
Rohit Jnagal
a0a419614f
Add /storage endpoint to 2.0 API.
...
/storage returns {device, mountpoint, capacity, usage} for all filesystems.
In addition, it also detect and applies label for each filesystem - currently two - "root", "docker-images".
/storage/<label> returns info about the filesystem with specific label. eg. /storage/root returns info for root filesystem.
2015-03-11 01:49:58 +00:00
Katie Knister
78f3029943
Fixed some bugs in oomparser streaming
2015-03-10 18:18:54 -07:00
Victor Marmol
d357c34f22
Refactor and centralize HTTP registration.
2015-03-10 18:00:10 -07:00
Victor Marmol
563ead3cce
Use mux to register HTTP handlers.
...
This will allow us to register handlers on the non-default HTTP handler.
2015-03-10 15:37:16 -07:00
Katie Knister
3a133c2be7
Added streaming to api
2015-03-09 17:54:28 -07:00
Rohit Jnagal
d3db8503f4
Move derived stats to v2. Add v2 container spec.
2015-03-04 18:27:57 +00: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
Katie Knister
6e14267c3c
Added a basic api interface for events
2015-02-26 14:14:25 -08:00
Rohit Jnagal
28984d7811
Add spec to v2.0 API.
2015-02-19 17:59:41 +00:00
Rohit Jnagal
7201af3ca5
Expose a minimal 2.0 API with the first summary endpoint.
...
Right now, we just do raw container name. More types to follow.
We'll re-do the older endpoint in 2.0 before we publish it.
2015-02-19 05:27:44 +00:00
Rohit Jnagal
e06e65f987
Map request for 'api/v1.2/docker/' to 'api/v1.2/docker'
...
Presently, we just fail this request:
$ curl 0:8080/api/v1.2/docker/
failed to get Docker container "" with error: unable to find Docker container ""
2015-02-18 07:25:42 +00:00
Victor Marmol
77283196f6
Refactoring API version handling.
...
This should make it easier to add future API versions and makes it a bit
simpler to look through the API.
2015-02-09 15:16:45 -08:00
Victor Marmol
e3ab15417c
Ignore update errors for dead containers.
...
This adds an Exists() interface to detect when the container is dead.
Before reporting an update error we check is Exists() is true.
Some documentation was added as well.
2014-11-22 05:31:11 +08:00
Victor Marmol
181e12dda2
Refactoring and fixes of /docker API endpoint.
...
This canges the output of the Docker endpoint to be a map so that it is
more consistent from single to multiple returns. It also refactors
internally how we handle both types of requests.
Without this PR the /docker API endpoint is broken completely so this
change in format has no effect anyways.
These changes are tested by the upcoming integration tests.
2014-11-19 03:36:18 -08:00
Darren Shepherd
bce92c2a0b
When an unknown error occurs set the HTTP status code to 500
2014-11-08 14:56:28 -07:00
Victor Marmol
9961e0f4d6
Output correct content-type with API responses.
...
Fixes #281
2014-10-27 08:33:22 -07:00
Victor Marmol
8aa05b0c39
Add API version v1.2 with /docker endpoint.
...
The /docker endpoint lists all Docker containers under one unified
namespace.
2014-10-20 22:24:01 -07:00
Satnam Singh
f3c92c381a
More if undos.
2014-09-24 11:07:48 -07:00
Satnam Singh
bae82a583d
A few minor Go style suggestions.
2014-09-24 10:53:52 -07:00
Satnam Singh
87768a047c
Minor Go-style suggeston: move decode and error assignment into if clause check.
2014-09-22 15:21:06 -07:00
Victor Marmol
9dd8621686
Remove remaining parts of samples and percentiles.
2014-09-15 14:38:51 -07:00
Vishnu Kannan
3e390e0f33
Use glog instead of 'log' library.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-07 18:38:58 +00:00
Victor Marmol
41e27e40ef
Adding v1.1 remote API.
...
Main addition is the "subcontainers" resource which provides
ContainerInfo for all subcontainers (recursively and including
self) of the specified container.
2014-08-01 16:17:43 -07:00