You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
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.
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
The text was updated successfully, but these errors were encountered: