此内容没有您所选择的语言版本。

Chapter 12. NodeMetrics [metrics.k8s.io/v1beta1]


Description
NodeMetrics sets resource usage metrics of a node.
Type
object
Required
  • timestamp
  • window
  • usage

12.1. Specification

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

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].

usage

object (Quantity)

The memory usage is the memory working set.

window

Duration

 

12.2. API endpoints

The following API endpoints are available:

  • /apis/metrics.k8s.io/v1beta1/nodes

    • GET: list objects of kind NodeMetrics
  • /apis/metrics.k8s.io/v1beta1/nodes/{name}

    • GET: read the specified NodeMetrics

12.2.1. /apis/metrics.k8s.io/v1beta1/nodes

HTTP method
GET
Description
list objects of kind NodeMetrics
Table 12.1. HTTP responses
HTTP codeReponse body

200 - OK

NodeMetricsList schema

12.2.2. /apis/metrics.k8s.io/v1beta1/nodes/{name}

Table 12.2. Global path parameters
ParameterTypeDescription

name

string

name of the NodeMetrics

HTTP method
GET
Description
read the specified NodeMetrics
Table 12.3. HTTP responses
HTTP codeReponse body

200 - OK

NodeMetrics schema

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.