Commit Graph

67 Commits

Author SHA1 Message Date
Vishnu kannan
6dfdd8eca1 1. Update filesystem stats APIs.
2. Add BaseUsage to containers which includes only the rootfs usage, if available.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-15 15:39:17 -08:00
Tim St. Clair
e011781a88 Add V2 ContainerInfo API
- Add V2 ContainerInfo struct
- Move v1/v2 conversion functions to a reusable package
- Add V2 ContainerInfo accessor method to Manager
2016-01-13 11:58:09 -08:00
Lei Xue
dbbe38dfed re-order the import package 2015-11-30 16:43:22 +08:00
Jimmi Dyson
d1fce20304 Regexp tidy up 2015-11-26 09:14:26 +00:00
mqliang
ce001dcd4e Fix imported package names to not use mixedCaps or under_scores 2015-10-22 12:10:57 +08:00
Daniel Martí
208baa507f Add instantaneous cpu metrics to v2 2015-08-27 16:47:11 -07:00
anushree-n
04a78502ca Modify generic collector 2015-08-12 17:56:01 -07:00
Rohit Jnagal
c0b3f779f5 Add custom metrics to spec.
Remove spec-related fields from stat.
We can simplify the stats a bit further by handling Int and Float better.
But this was big enough change already.
Verified v1 and v2 spec/stats/appmetrics APIs.
2015-07-25 20:17:54 +00:00
anushree-n
b197771668 API changes for custom metrics 2015-07-20 11:29:43 -07:00
Victor Marmol
b923eff11c Expose multiple network interfaces in API.
Part of #686
2015-06-07 17:01:53 -07:00
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