このコンテンツは選択した言語では利用できません。

Chapter 14. PodMetrics [metrics.k8s.io/v1beta1]


Description
PodMetrics sets resource usage metrics of a pod.
Type
object
Required
  • timestamp
  • window
  • containers

14.1. Specification

Expand
PropertyTypeDescription

apiVersion

string

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

containers

array

Metrics for all containers are collected within the same time window.

containers[]

object

ContainerMetrics sets resource usage metrics of a container.

kind

string

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

metadata

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

timestamp

Time

The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].

window

Duration

 

14.1.1. .containers

Description
Metrics for all containers are collected within the same time window.
Type
array

14.1.2. .containers[]

Description
ContainerMetrics sets resource usage metrics of a container.
Type
object
Required
  • name
  • usage
Expand
PropertyTypeDescription

name

string

Container name corresponding to the one from pod.spec.containers.

usage

object (Quantity)

The memory usage is the memory working set.

14.2. API endpoints

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

14.2.1. /apis/metrics.k8s.io/v1beta1/pods

HTTP method
GET
Description
list objects of kind PodMetrics
Expand
Table 14.1. HTTP responses
HTTP codeReponse body

200 - OK

PodMetricsList schema

14.2.2. /apis/metrics.k8s.io/v1beta1/namespaces/{namespace}/pods

HTTP method
GET
Description
list objects of kind PodMetrics
Expand
Table 14.2. HTTP responses
HTTP codeReponse body

200 - OK

PodMetricsList schema

14.2.3. /apis/metrics.k8s.io/v1beta1/namespaces/{namespace}/pods/{name}

Expand
Table 14.3. Global path parameters
ParameterTypeDescription

name

string

name of the PodMetrics

HTTP method
GET
Description
read the specified PodMetrics
Expand
Table 14.4. HTTP responses
HTTP codeReponse body

200 - OK

PodMetrics schema

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る