PodMetrics sets resource usage metrics of a pod.
PodMetrics sets resource usage metrics of a pod.
object
timestamp
window
containers
| Property | Type | Description |
|---|---|---|
|
|
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
|
Metrics for all containers are collected within the same time window. |
|
|
ContainerMetrics sets resource usage metrics of a container. |
|
|
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
|
Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
|
|
The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp]. |
|
|
Metrics for all containers are collected within the same time window.
array
The following API endpoints are available:
/apis/metrics.k8s.io/v1beta1/pods
GET: list objects of kind PodMetrics
/apis/metrics.k8s.io/v1beta1/namespaces/{namespace}/pods
GET: list objects of kind PodMetrics
/apis/metrics.k8s.io/v1beta1/namespaces/{namespace}/pods/{name}
GET: read the specified PodMetrics
GET
list objects of kind PodMetrics
| HTTP code | Reponse body |
|---|---|
200 - OK |
|
GET
list objects of kind PodMetrics
| HTTP code | Reponse body |
|---|---|
200 - OK |
|
| Parameter | Type | Description |
|---|---|---|
|
|
name of the PodMetrics |
GET
read the specified PodMetrics
| HTTP code | Reponse body |
|---|---|
200 - OK |
|