This is a cache of https://docs.okd.io/latest/rest_api/monitoring_apis/nodemetrics-metrics-k8s-io-v1beta1.html. It is a snapshot of the page at 2024-11-23T19:45:46.572+0000.
NodeMetrics [metrics.k8s.io/v1beta1] - Monitoring <strong>api</strong>s | <strong>api</strong> reference | OKD 4
×
Description

NodeMetrics sets resource usage metrics of a node.

Type

object

Required
  • timestamp

  • window

  • usage

Specification

Property Type Description

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_v2

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

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

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

HTTP method

GET

Description

list objects of kind NodeMetrics

Table 1. HTTP responses
HTTP code Reponse body

200 - OK

NodeMetricsList schema

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

Table 2. Global path parameters
Parameter Type Description

name

string

name of the NodeMetrics

HTTP method

GET

Description

read the specified NodeMetrics

Table 3. HTTP responses
HTTP code Reponse body

200 - OK

NodeMetrics schema