Yang Guo
a5adaad26d
Add an API to get FsStats from filesystem UUID
2017-08-23 12:33:42 -07:00
David Ashpole
696b82ae97
do not log multiple filesystems if root container
2017-01-09 10:55:41 -08:00
Tim St. Clair
39fe454f32
Make manager multi-container functions robust to partial failures
2016-05-16 13:25:33 -07:00
Vishnu kannan
f5829b4744
Rework the v2.1 API to expose container Info.
...
Added a test for filesystem stats. Devicemapper backend is ignored
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-03 17:02:49 -08:00
Vishnu Kannan
944201c86b
Refactor api conversion methods.
2016-01-15 15:40:15 -08:00
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
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
Victor Marmol
ed6dd78996
Handle container names in resource path
2015-04-20 11:27:39 -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
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
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
Katie Knister
3c7e67991d
Created a way to remove unused channels from an eventHandler's watchers list
2015-03-25 16:36:48 -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
Rohit Jnagal
1b3de3a16e
Add recursive option for /stats endpoint.
2015-03-13 23:08:15 +00:00
Rohit Jnagal
53d25cc90e
Add alias and namespace information to /spec endpoint
2015-03-13 21:13:23 +00: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
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
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
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