Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Model API endpoints v2.0 #476

Closed
alexmavr opened this issue Aug 14, 2015 · 3 comments
Closed

Model API endpoints v2.0 #476

alexmavr opened this issue Aug 14, 2015 · 3 comments

Comments

@alexmavr
Copy link
Contributor

The existing API structure reflects the top-down hierarchy of the actual model. However, there might be use cases where extracting bulk metrics and/or stats might be useful.

Examples:
/metrics/namespaces/{namespace-name}/pods/?label=X&value=Y&start=Z&end=K
returns all metrics of all pods in a namespace that satisfy the specified label:value pair within the optional start and end intervals.

/stats/namespaces/{namespace-name}/pods/{pod-name}/containers?label=X&value=Y&start=Z&end=K
returns all stats of all containers in a pod that satisfy the specified label:value pair within the optional start and end intervals.

Similar top-level endpoints can be implemented, such as /metric-sum/, depending on actual usecases of the model.

\cc @vishh @mwielgus

@vishh
Copy link
Contributor

vishh commented Aug 20, 2015

@piosz: This is a proposal for a more long term API. Kindly take a look.

@vishh vishh added this to the Auto-scaling support milestone Aug 20, 2015
@piosz
Copy link
Contributor

piosz commented Aug 21, 2015

cc @fgrzadkowski

@vishh vishh modified the milestones: Auto-scaling support, Kubernetes 1.2 - simplifications Sep 18, 2015
@fgrzadkowski
Copy link
Contributor

This will be substituted by metrics API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants