この記事は英語の原文を日本語に翻訳したものです。原文: https://opentelemetry.io/docs/specs/semconv/system/k8s-metrics/
翻訳元: open-telemetry/semantic-conventions v1.44.0(コミット e10a930)
Kubernetesメトリクスに関するセマンティック規約
ステータス: Development
K8sメトリクス
この文書では、OpenTelemetryにおける一般的なK8sレベルのメトリクスのInstrumentと属性について説明します。これらのメトリクスは、技術固有の明確に定義されたAPI(KubeletのAPIなど)から収集されます。
k8s.名前空間のInstrumentによるメトリクスは、K8s Resourceに関連付けるべきであり(SHOULD)、それによってk8s.pod.nameやk8s.pod.uidなどのその属性を引き継ぎます。
Podメトリクス
Description: 名前空間k8s.podの下で取得される、Podレベルのメトリクス。
メトリクス: k8s.pod.uptime
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.uptime | Gauge | s | The time the Pod has been running. [1] | k8s.pod |
[1]: Instrumentations SHOULD use a gauge with type double and measure uptime in seconds as a floating point number with the highest precision available.
The actual accuracy would depend on the instrumentation and operating system.
メトリクス: k8s.pod.status.phase
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.status.phase | UpDownCounter | {pod} | Describes number of K8s Pods that are currently in a given phase. [1] | k8s.pod |
[1]: All possible pod phases will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current phase will be non-zero.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.pod.status.phase | Required | string | The phase for the pod. Corresponds to the phase field of the: K8s PodStatus | Pending; Running |
k8s.pod.status.phaseには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
Failed | All containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system). | |
Pending | The pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host. | |
Running | The pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted. | |
Succeeded | All containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers. | |
Unknown | For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. |
メトリクス: k8s.pod.status.reason
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.status.reason | UpDownCounter | {pod} | Describes the number of K8s Pods that are currently in a state for a given reason. [1] | k8s.pod |
[1]: All possible pod status reasons will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current reason will be non-zero.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.pod.status.reason | Required | string | The reason for the pod state. Corresponds to the reason field of the: K8s PodStatus | Evicted; NodeAffinity |
k8s.pod.status.reasonには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
Evicted | The pod is evicted. | |
NodeAffinity | The pod is in a status because of its node affinity | |
NodeLost | The reason on a pod when its state cannot be confirmed as kubelet is unresponsive on the node it is (was) running. | |
Shutdown | The node is shutdown | |
UnexpectedAdmissionError | The pod was rejected admission to the node because of an error during admission that could not be categorized. |
メトリクス: k8s.pod.cpu.time
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.cpu.time | Counter | s | Total CPU time consumed. [1] | k8s.pod |
[1]: Total CPU time consumed by the specific Pod on all available CPU cores
メトリクス: k8s.pod.cpu.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.cpu.usage | Gauge | {cpu} | Pod’s CPU usage, measured in CPUs. Range from 0 to the number of allocatable CPUs. [1] | k8s.pod |
[1]: CPU usage of the specific Pod on all available CPU cores. It is calculated as the change in cumulative CPU time (k8s.pod.cpu.time) over a measurement interval, divided by the elapsed time: usageCores = (cpuTimeEnd - cpuTimeStart) / elapsedSeconds
メトリクス: k8s.pod.memory.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.memory.usage | UpDownCounter | By | Memory usage of the Pod. [1] | k8s.pod |
[1]: Total memory in use. This includes all memory regardless of when it was accessed. This metric is derived from the MemoryStats.UsageBytes field of the PodStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.pod.memory.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.memory.available | UpDownCounter | By | Pod memory available. [1] | k8s.pod |
[1]: Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. This metric is derived from the MemoryStats.AvailableBytes field of the PodStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.pod.memory.rss
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.memory.rss | UpDownCounter | By | Pod memory RSS. [1] | k8s.pod |
[1]: The amount of anonymous and swap cache memory (includes transparent hugepages). This metric is derived from the MemoryStats.RSSBytes field of the PodStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.pod.memory.working_set
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.memory.working_set | UpDownCounter | By | Pod memory working set. [1] | k8s.pod |
[1]: The amount of working set memory. This includes recently accessed memory, dirty memory, and kernel memory. WorkingSetBytes is <= UsageBytes. This metric is derived from the MemoryStats.WorkingSetBytes field of the PodStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.pod.paging.faults
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.paging.faults | Counter | {fault} | Pod memory paging faults. [1] | k8s.pod |
[1]: Cumulative number of major/minor page faults. This metric is derived from the MemoryStats.PageFaults and MemoryStats.MajorPageFaults field of the PodStats.Memory of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
system.paging.fault.type | Recommended | string | The paging fault type | minor |
system.paging.fault.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
major | major | |
minor | minor |
メトリクス: k8s.pod.network.io
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.network.io | Counter | By | Network bytes for the Pod. | k8s.pod |
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
network.interface.name | Recommended | string | The network interface name. | lo; eth0 | |
network.io.direction | Recommended | string | The direction of traffic from the perspective of the observing host’s physical or virtual network interface. It should not be used to represent the logical direction of a stateful connection or network flow. | transmit |
network.io.directionには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
receive | receive | |
transmit | transmit |
メトリクス: k8s.pod.network.errors
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.network.errors | Counter | {error} | Pod network errors. | k8s.pod |
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
network.interface.name | Recommended | string | The network interface name. | lo; eth0 | |
network.io.direction | Recommended | string | The direction of traffic from the perspective of the observing host’s physical or virtual network interface. It should not be used to represent the logical direction of a stateful connection or network flow. | transmit |
network.io.directionには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
receive | receive | |
transmit | transmit |
メトリクス: k8s.pod.filesystem.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.filesystem.available | UpDownCounter | By | Pod filesystem available bytes. [1] | k8s.pod |
[1]: This metric is derived from the FsStats.AvailableBytes field of the PodStats.EphemeralStorage of the Kubelet’s stats API.
メトリクス: k8s.pod.filesystem.capacity
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.filesystem.capacity | UpDownCounter | By | Pod filesystem capacity. [1] | k8s.pod |
[1]: This metric is derived from the FsStats.CapacityBytes field of the PodStats.EphemeralStorage of the Kubelet’s stats API.
メトリクス: k8s.pod.filesystem.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.filesystem.usage | UpDownCounter | By | Pod filesystem usage. [1] | k8s.pod |
[1]: This may not equal capacity - available.
This metric is derived from the FsStats.UsedBytes field of the PodStats.EphemeralStorage of the Kubelet’s stats API.
メトリクス: k8s.pod.volume.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.volume.available | UpDownCounter | By | Pod volume storage space available. [1] | k8s.pod |
[1]: This metric is derived from the VolumeStats.AvailableBytes field of the PodStats of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.volume.name | Required | string | The name of the K8s volume. | volume0 | |
k8s.volume.type | Recommended | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim |
k8s.volume.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
configMap | A configMap volume | |
downwardAPI | A downwardAPI volume | |
emptyDir | An emptyDir volume | |
local | A local volume | |
persistentVolumeClaim | A persistentVolumeClaim volume | |
secret | A secret volume |
メトリクス: k8s.pod.volume.capacity
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.volume.capacity | UpDownCounter | By | Pod volume total capacity. [1] | k8s.pod |
[1]: This metric is derived from the VolumeStats.CapacityBytes field of the PodStats of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.volume.name | Required | string | The name of the K8s volume. | volume0 | |
k8s.volume.type | Recommended | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim |
k8s.volume.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
configMap | A configMap volume | |
downwardAPI | A downwardAPI volume | |
emptyDir | An emptyDir volume | |
local | A local volume | |
persistentVolumeClaim | A persistentVolumeClaim volume | |
secret | A secret volume |
メトリクス: k8s.pod.volume.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.volume.usage | UpDownCounter | By | Pod volume usage. [1] | k8s.pod |
[1]: This may not equal capacity - available.
This metric is derived from the VolumeStats.UsedBytes field of the PodStats of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.volume.name | Required | string | The name of the K8s volume. | volume0 | |
k8s.volume.type | Recommended | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim |
k8s.volume.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
configMap | A configMap volume | |
downwardAPI | A downwardAPI volume | |
emptyDir | An emptyDir volume | |
local | A local volume | |
persistentVolumeClaim | A persistentVolumeClaim volume | |
secret | A secret volume |
メトリクス: k8s.pod.volume.inode.count
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.volume.inode.count | UpDownCounter | {inode} | The total inodes in the filesystem of the Pod’s volume. [1] | k8s.pod |
[1]: This metric is derived from the VolumeStats.Inodes field of the PodStats of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.volume.name | Required | string | The name of the K8s volume. | volume0 | |
k8s.volume.type | Recommended | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim |
k8s.volume.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
configMap | A configMap volume | |
downwardAPI | A downwardAPI volume | |
emptyDir | An emptyDir volume | |
local | A local volume | |
persistentVolumeClaim | A persistentVolumeClaim volume | |
secret | A secret volume |
メトリクス: k8s.pod.volume.inode.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.volume.inode.used | UpDownCounter | {inode} | The inodes used by the filesystem of the Pod’s volume. [1] | k8s.pod |
[1]: This metric is derived from the VolumeStats.InodesUsed field of the PodStats of the Kubelet’s stats API.
This may not be equal to inodes - free because filesystem may share inodes with other filesystems.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.volume.name | Required | string | The name of the K8s volume. | volume0 | |
k8s.volume.type | Recommended | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim |
k8s.volume.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
configMap | A configMap volume | |
downwardAPI | A downwardAPI volume | |
emptyDir | An emptyDir volume | |
local | A local volume | |
persistentVolumeClaim | A persistentVolumeClaim volume | |
secret | A secret volume |
メトリクス: k8s.pod.volume.inode.free
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.pod.volume.inode.free | UpDownCounter | {inode} | The free inodes in the filesystem of the Pod’s volume. [1] | k8s.pod |
[1]: This metric is derived from the VolumeStats.InodesFree field of the PodStats of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.volume.name | Required | string | The name of the K8s volume. | volume0 | |
k8s.volume.type | Recommended | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim |
k8s.volume.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
configMap | A configMap volume | |
downwardAPI | A downwardAPI volume | |
emptyDir | An emptyDir volume | |
local | A local volume | |
persistentVolumeClaim | A persistentVolumeClaim volume | |
secret | A secret volume |
Containerメトリクス
Description: 名前空間k8s.containerの下で取得される、Containerレベルのメトリクス。
メトリクス: k8s.container.status.state
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.status.state | UpDownCounter | {container} | Describes the number of K8s containers that are currently in a given state. [1] | k8s.container |
[1]: All possible container states will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current state will be non-zero.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.container.status.state | Required | string | The state of the container. K8s ContainerState | terminated; running; waiting |
k8s.container.status.stateには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
running | The container is running. | |
terminated | The container has terminated. | |
waiting | The container is waiting. |
メトリクス: k8s.container.status.reason
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.status.reason | UpDownCounter | {container} | Describes the number of K8s containers that are currently in a state for a given reason. [1] | k8s.container |
[1]: All possible container state reasons will be reported at each time interval to avoid missing metrics. Only the value corresponding to the current state reason will be non-zero.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.container.status.reason | Required | string | The reason for the container state. Corresponds to the reason field of the: K8s ContainerStateWaiting or K8s ContainerStateTerminated | ContainerCreating; CrashLoopBackOff; CreateContainerConfigError; ErrImagePull; ImagePullBackOff; OOMKilled; Completed; Error; ContainerCannotRun |
k8s.container.status.reasonには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
Completed | The container has completed execution. | |
ContainerCannotRun | The container cannot run. | |
ContainerCreating | The container is being created. | |
CrashLoopBackOff | The container is in a crash loop back off state. | |
CreateContainerConfigError | There was an error creating the container configuration. | |
ErrImagePull | There was an error pulling the container image. | |
Error | There was an error with the container. | |
ImagePullBackOff | The container image pull is in back off state. | |
OOMKilled | The container was killed due to out of memory. |
Nodeメトリクス
Description: 名前空間k8s.nodeの下で取得される、Nodeレベルのメトリクス。
メトリクス: k8s.node.uptime
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.uptime | Gauge | s | The time the Node has been running. [1] | k8s.node |
[1]: Instrumentations SHOULD use a gauge with type double and measure uptime in seconds as a floating point number with the highest precision available.
The actual accuracy would depend on the instrumentation and operating system.
メトリクス: k8s.node.cpu.allocatable
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.cpu.allocatable | UpDownCounter | {cpu} | Amount of CPU allocatable on the node. | k8s.node |
メトリクス: k8s.node.memory.allocatable
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.memory.allocatable | UpDownCounter | By | Amount of memory allocatable on the node. | k8s.node |
メトリクス: k8s.node.ephemeral_storage.allocatable
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.ephemeral_storage.allocatable | UpDownCounter | By | Amount of ephemeral-storage allocatable on the node. | k8s.node |
メトリクス: k8s.node.pod.allocatable
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.pod.allocatable | UpDownCounter | {pod} | Amount of pods allocatable on the node. | k8s.node |
メトリクス: k8s.node.condition.status
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.condition.status | UpDownCounter | {node} | Describes the condition of a particular Node. [1] | k8s.node |
[1]: All possible node condition pairs (type and status) will be reported at each time interval to avoid missing metrics. Condition pairs corresponding to the current conditions’ statuses will be non-zero.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.node.condition.status | Required | string | The status of the condition, one of True, False, Unknown. [1] | true; false; unknown | |
k8s.node.condition.type | Required | string | The condition type of a K8s Node. [2] | Ready; DiskPressure |
[1] k8s.node.condition.status: This attribute aligns with the status field of the
NodeCondition
[2] k8s.node.condition.type: K8s Node conditions as described
by K8s documentation.
This attribute aligns with the type field of the
NodeCondition
The set of possible values is not limited to those listed here. Managed Kubernetes environments, or custom controllers MAY introduce additional node condition types. When this occurs, the exact value as reported by the Kubernetes API SHOULD be used.
k8s.node.condition.statusには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
false | condition_false | |
true | condition_true | |
unknown | condition_unknown |
k8s.node.condition.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
DiskPressure | Pressure exists on the disk size—that is, if the disk capacity is low | |
MemoryPressure | Pressure exists on the node memory—that is, if the node memory is low | |
NetworkUnavailable | The network for the node is not correctly configured | |
PIDPressure | Pressure exists on the processes—that is, if there are too many processes on the node | |
Ready | The node is healthy and ready to accept pods |
メトリクス: k8s.node.cpu.time
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.cpu.time | Counter | s | Total CPU time consumed. [1] | k8s.node |
[1]: Total CPU time consumed by the specific Node on all available CPU cores
メトリクス: k8s.node.cpu.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.cpu.usage | Gauge | {cpu} | Node’s CPU usage, measured in CPUs. Range from 0 to the number of allocatable CPUs. [1] | k8s.node |
[1]: CPU usage of the specific Node on all available CPU cores. It is calculated as the change in cumulative CPU time (k8s.node.cpu.time) over a measurement interval, divided by the elapsed time: usageCores = (cpuTimeEnd - cpuTimeStart) / elapsedSeconds
メトリクス: k8s.node.memory.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.memory.usage | UpDownCounter | By | Memory usage of the Node. [1] | k8s.node |
[1]: Total memory in use. This includes all memory regardless of when it was accessed. This metric is derived from the MemoryStats.UsageBytes field of the NodeStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.node.memory.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.memory.available | UpDownCounter | By | Node memory available. [1] | k8s.node |
[1]: Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. This metric is derived from the MemoryStats.AvailableBytes field of the NodeStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.node.memory.rss
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.memory.rss | UpDownCounter | By | Node memory RSS. [1] | k8s.node |
[1]: The amount of anonymous and swap cache memory (includes transparent hugepages). This metric is derived from the MemoryStats.RSSBytes field of the NodeStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.node.memory.working_set
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.memory.working_set | UpDownCounter | By | Node memory working set. [1] | k8s.node |
[1]: The amount of working set memory. This includes recently accessed memory, dirty memory, and kernel memory. WorkingSetBytes is <= UsageBytes. This metric is derived from the MemoryStats.WorkingSetBytes field of the NodeStats.Memory of the Kubelet’s stats API.
メトリクス: k8s.node.paging.faults
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.paging.faults | Counter | {fault} | Node memory paging faults. [1] | k8s.node |
[1]: Cumulative number of major/minor page faults. This metric is derived from the MemoryStats.PageFaults and MemoryStats.MajorPageFaults fields of the NodeStats.Memory of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
system.paging.fault.type | Recommended | string | The paging fault type | minor |
system.paging.fault.typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
major | major | |
minor | minor |
メトリクス: k8s.node.network.io
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.network.io | Counter | By | Network bytes for the Node. | k8s.node |
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
network.interface.name | Recommended | string | The network interface name. | lo; eth0 | |
network.io.direction | Recommended | string | The direction of traffic from the perspective of the observing host’s physical or virtual network interface. It should not be used to represent the logical direction of a stateful connection or network flow. | transmit |
network.io.directionには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
receive | receive | |
transmit | transmit |
メトリクス: k8s.node.network.errors
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.network.errors | Counter | {error} | Node network errors. | k8s.node |
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
network.interface.name | Recommended | string | The network interface name. | lo; eth0 | |
network.io.direction | Recommended | string | The direction of traffic from the perspective of the observing host’s physical or virtual network interface. It should not be used to represent the logical direction of a stateful connection or network flow. | transmit |
network.io.directionには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
receive | receive | |
transmit | transmit |
メトリクス: k8s.node.filesystem.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.filesystem.available | UpDownCounter | By | Node filesystem available bytes. [1] | k8s.node |
[1]: This metric is derived from the FsStats.AvailableBytes field of the NodeStats.Fs of the Kubelet’s stats API.
メトリクス: k8s.node.filesystem.capacity
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.filesystem.capacity | UpDownCounter | By | Node filesystem capacity. [1] | k8s.node |
[1]: This metric is derived from the FsStats.CapacityBytes field of the NodeStats.Fs of the Kubelet’s stats API.
メトリクス: k8s.node.filesystem.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.filesystem.usage | UpDownCounter | By | Node filesystem usage. [1] | k8s.node |
[1]: This may not equal capacity - available.
This metric is derived from the FsStats.UsedBytes field of the NodeStats.Fs of the Kubelet’s stats API.
メトリクス: k8s.node.filesystem.inode.count
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.filesystem.inode.count | UpDownCounter | {inode} | The total inodes in the node’s root filesystem. [1] | k8s.node |
[1]: This metric is derived from the FsStats.Inodes field of the NodeStats.Fs of the Kubelet’s stats API.
メトリクス: k8s.node.filesystem.inode.free
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.filesystem.inode.free | UpDownCounter | {inode} | The free inodes in the node’s root filesystem. [1] | k8s.node |
[1]: This metric is derived from the FsStats.InodesFree field of the NodeStats.Fs of the Kubelet’s stats API.
メトリクス: k8s.node.system_container.cpu.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.system_container.cpu.usage | Gauge | {cpu} | Node’s system container CPU usage, measured in CPUs. [1] | k8s.node.system_container |
[1]: CPU usage of the specific System Container on all available CPU cores. It is calculated as the change in cumulative CPU time (k8s.node.system_container.cpu.time) over a measurement interval, divided by the elapsed time: usageCores = (cpuTimeEnd - cpuTimeStart) / elapsedSeconds
メトリクス: k8s.node.system_container.cpu.time
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.system_container.cpu.time | Counter | s | Node’s system container CPU time. [1] | k8s.node.system_container |
[1]: This metric is derived from the CPUStats.UsageCoreNanoSeconds field of the ContainerStats of Node.SystemContainers of the Kubelet’s stats API.
メトリクス: k8s.node.system_container.memory.working_set
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.system_container.memory.working_set | UpDownCounter | By | The amount of working set memory. [1] | k8s.node.system_container |
[1]: This metric is derived from the MemoryStats.WorkingSetBytes field of the ContainerStats of Node.SystemContainers of the Kubelet’s stats API.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.node.system_container.name | Required | string | The name of the system container running on the K8s Node. | kubelet; runtime; pods; misc |
メトリクス: k8s.node.system_container.memory.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.node.system_container.memory.usage | UpDownCounter | By | Node’s system container memory usage. [1] | k8s.node.system_container |
[1]: This metric is derived from the MemoryStats.UsageBytes field of the ContainerStats of Node.SystemContainers of the Kubelet’s stats API.
Deploymentメトリクス
Description: 名前空間k8s.deploymentの下で取得される、Deploymentレベルのメトリクス。
メトリクス: k8s.deployment.pod.desired
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.deployment.pod.desired | UpDownCounter | {pod} | Number of desired replica pods in this deployment. [1] | k8s.deployment |
[1]: This metric aligns with the replicas field of the
K8s DeploymentSpec.
メトリクス: k8s.deployment.pod.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.deployment.pod.available | UpDownCounter | {pod} | Total number of available replica pods (ready for at least minReadySeconds) targeted by this deployment. [1] | k8s.deployment |
[1]: This metric aligns with the availableReplicas field of the
K8s DeploymentStatus.
ReplicaSetメトリクス
Description: 名前空間k8s.replicasetの下で取得される、ReplicaSetレベルのメトリクス。
メトリクス: k8s.replicaset.pod.desired
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.replicaset.pod.desired | UpDownCounter | {pod} | Number of desired replica pods in this replicaset. [1] | k8s.replicaset |
[1]: This metric aligns with the replicas field of the
K8s ReplicaSetSpec.
メトリクス: k8s.replicaset.pod.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.replicaset.pod.available | UpDownCounter | {pod} | Total number of available replica pods (ready for at least minReadySeconds) targeted by this replicaset. [1] | k8s.replicaset |
[1]: This metric aligns with the availableReplicas field of the
K8s ReplicaSetStatus.
ReplicationControllerメトリクス
Description: 名前空間k8s.replicationcontrollerの下で取得される、ReplicationControllerレベルのメトリクス。
メトリクス: k8s.replicationcontroller.pod.desired
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.replicationcontroller.pod.desired | UpDownCounter | {pod} | Number of desired replica pods in this replication controller. [1] | k8s.replicationcontroller |
[1]: This metric aligns with the replicas field of the
K8s ReplicationControllerSpec
メトリクス: k8s.replicationcontroller.pod.available
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.replicationcontroller.pod.available | UpDownCounter | {pod} | Total number of available replica pods (ready for at least minReadySeconds) targeted by this replication controller. [1] | k8s.replicationcontroller |
[1]: This metric aligns with the availableReplicas field of the
K8s ReplicationControllerStatus
StatefulSetメトリクス
Description: 名前空間k8s.statefulsetの下で取得される、StatefulSetレベルのメトリクス。
メトリクス: k8s.statefulset.pod.desired
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.statefulset.pod.desired | UpDownCounter | {pod} | Number of desired replica pods in this statefulset. [1] | k8s.statefulset |
[1]: This metric aligns with the replicas field of the
K8s StatefulSetSpec.
メトリクス: k8s.statefulset.pod.ready
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.statefulset.pod.ready | UpDownCounter | {pod} | The number of replica pods created for this statefulset with a Ready Condition. [1] | k8s.statefulset |
[1]: This metric aligns with the readyReplicas field of the
K8s StatefulSetStatus.
メトリクス: k8s.statefulset.pod.current
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.statefulset.pod.current | UpDownCounter | {pod} | The number of replica pods created by the statefulset controller from the statefulset version indicated by currentRevision. [1] | k8s.statefulset |
[1]: This metric aligns with the currentReplicas field of the
K8s StatefulSetStatus.
メトリクス: k8s.statefulset.pod.updated
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.statefulset.pod.updated | UpDownCounter | {pod} | Number of replica pods created by the statefulset controller from the statefulset version indicated by updateRevision. [1] | k8s.statefulset |
[1]: This metric aligns with the updatedReplicas field of the
K8s StatefulSetStatus.
HorizontalPodAutoscalerメトリクス
Description: 名前空間k8s.hpaの下で取得される、HorizontalPodAutoscalerレベルのメトリクス。
メトリクス: k8s.hpa.pod.desired
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.pod.desired | UpDownCounter | {pod} | Desired number of replica pods managed by this horizontal pod autoscaler, as last calculated by the autoscaler. [1] | k8s.hpa |
[1]: This metric aligns with the desiredReplicas field of the
K8s HorizontalPodAutoscalerStatus
メトリクス: k8s.hpa.pod.current
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.pod.current | UpDownCounter | {pod} | Current number of replica pods managed by this horizontal pod autoscaler, as last seen by the autoscaler. [1] | k8s.hpa |
[1]: This metric aligns with the currentReplicas field of the
K8s HorizontalPodAutoscalerStatus
メトリクス: k8s.hpa.pod.max
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.pod.max | UpDownCounter | {pod} | The upper limit for the number of replica pods to which the autoscaler can scale up. [1] | k8s.hpa |
[1]: This metric aligns with the maxReplicas field of the
K8s HorizontalPodAutoscalerSpec
メトリクス: k8s.hpa.pod.min
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.pod.min | UpDownCounter | {pod} | The lower limit for the number of replica pods to which the autoscaler can scale down. [1] | k8s.hpa |
[1]: This metric aligns with the minReplicas field of the
K8s HorizontalPodAutoscalerSpec
メトリクス: k8s.hpa.metric.target.cpu.value
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.metric.target.cpu.value | Gauge | {cpu} | Target value for CPU resource in HPA config. [1] | k8s.hpa; k8s.namespace |
[1]: This metric aligns with the value field of the
K8s HPA MetricTarget.
If the type of the metric is ContainerResource,
the k8s.container.name attribute MUST be set to identify the specific container within the pod to which the metric applies.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.container.name | Conditionally Required [1] | string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (container.name). | redis | |
k8s.hpa.metric.type | Recommended | string | The type of metric source for the horizontal pod autoscaler. [2] | Resource; ContainerResource |
[1] k8s.container.name: if and only if k8s.hpa.metric.type is ContainerResource
[2] k8s.hpa.metric.type: This attribute reflects the type field of spec.metrics[] in the HPA.
メトリクス: k8s.hpa.metric.target.cpu.average_value
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.metric.target.cpu.average_value | Gauge | {cpu} | Target average value for CPU resource in HPA config. [1] | k8s.hpa; k8s.namespace |
[1]: This metric aligns with the averageValue field of the
K8s HPA MetricTarget.
If the type of the metric is ContainerResource,
the k8s.container.name attribute MUST be set to identify the specific container within the pod to which the metric applies.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.container.name | Conditionally Required [1] | string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (container.name). | redis | |
k8s.hpa.metric.type | Recommended | string | The type of metric source for the horizontal pod autoscaler. [2] | Resource; ContainerResource |
[1] k8s.container.name: if and only if k8s.hpa.metric.type is ContainerResource
[2] k8s.hpa.metric.type: This attribute reflects the type field of spec.metrics[] in the HPA.
メトリクス: k8s.hpa.metric.target.cpu.average_utilization
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.hpa.metric.target.cpu.average_utilization | Gauge | 1 | Target average utilization, in percentage, for CPU resource in HPA config. [1] | k8s.hpa; k8s.namespace |
[1]: This metric aligns with the averageUtilization field of the
K8s HPA MetricTarget.
If the type of the metric is ContainerResource,
the k8s.container.name attribute MUST be set to identify the specific container within the pod to which the metric applies.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.container.name | Conditionally Required [1] | string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (container.name). | redis | |
k8s.hpa.metric.type | Recommended | string | The type of metric source for the horizontal pod autoscaler. [2] | Resource; ContainerResource |
[1] k8s.container.name: if and only if k8s.hpa.metric.type is ContainerResource.
[2] k8s.hpa.metric.type: This attribute reflects the type field of spec.metrics[] in the HPA.
DaemonSetメトリクス
Description: 名前空間k8s.daemonsetの下で取得される、DaemonSetレベルのメトリクス。
メトリクス: k8s.daemonset.node.current_scheduled
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.daemonset.node.current_scheduled | UpDownCounter | {node} | Number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. [1] | k8s.daemonset |
[1]: This metric aligns with the currentNumberScheduled field of the
K8s DaemonSetStatus.
メトリクス: k8s.daemonset.node.desired_scheduled
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.daemonset.node.desired_scheduled | UpDownCounter | {node} | Number of nodes that should be running the daemon pod (including nodes currently running the daemon pod). [1] | k8s.daemonset |
[1]: This metric aligns with the desiredNumberScheduled field of the
K8s DaemonSetStatus.
メトリクス: k8s.daemonset.node.misscheduled
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.daemonset.node.misscheduled | UpDownCounter | {node} | Number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. [1] | k8s.daemonset |
[1]: This metric aligns with the numberMisscheduled field of the
K8s DaemonSetStatus.
メトリクス: k8s.daemonset.node.ready
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.daemonset.node.ready | UpDownCounter | {node} | Number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. [1] | k8s.daemonset |
[1]: This metric aligns with the numberReady field of the
K8s DaemonSetStatus.
Jobメトリクス
Description: 名前空間k8s.jobの下で取得される、Jobレベルのメトリクス。
メトリクス: k8s.job.pod.active
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.job.pod.active | UpDownCounter | {pod} | The number of pending and actively running pods for a job. [1] | k8s.job |
[1]: This metric aligns with the active field of the
K8s JobStatus.
メトリクス: k8s.job.pod.failed
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.job.pod.failed | UpDownCounter | {pod} | The number of pods which reached phase Failed for a job. [1] | k8s.job |
[1]: This metric aligns with the failed field of the
K8s JobStatus.
メトリクス: k8s.job.pod.successful
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.job.pod.successful | UpDownCounter | {pod} | The number of pods which reached phase Succeeded for a job. [1] | k8s.job |
[1]: This metric aligns with the succeeded field of the
K8s JobStatus.
メトリクス: k8s.job.pod.desired_successful
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.job.pod.desired_successful | UpDownCounter | {pod} | The desired number of successfully finished pods the job should be run with. [1] | k8s.job |
[1]: This metric aligns with the completions field of the
K8s JobSpec..
メトリクス: k8s.job.pod.max_parallel
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.job.pod.max_parallel | UpDownCounter | {pod} | The max desired number of pods the job should run at any given time. [1] | k8s.job |
[1]: This metric aligns with the parallelism field of the
K8s JobSpec.
CronJobメトリクス
Description: 名前空間k8s.cronjobの下で取得される、CronJobレベルのメトリクス。
メトリクス: k8s.cronjob.job.active
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.cronjob.job.active | UpDownCounter | {job} | The number of actively running jobs for a cronjob. [1] | k8s.cronjob |
[1]: This metric aligns with the active field of the
K8s CronJobStatus.
Namespaceメトリクス
Description: 名前空間k8s.namespaceの下で取得される、Namespaceレベルのメトリクス。
メトリクス: k8s.namespace.phase
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.namespace.phase | UpDownCounter | {namespace} | Describes number of K8s namespaces that are currently in a given phase. | k8s.namespace |
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.namespace.phase | Required | string | The phase of the K8s namespace. [1] | active; terminating |
[1] k8s.namespace.phase: This attribute aligns with the phase field of the
K8s NamespaceStatus
k8s.namespace.phaseには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
active | Active namespace phase as described by K8s API | |
terminating | Terminating namespace phase as described by K8s API |
K8s Containerメトリクス
Description: 名前空間k8s.containerの下で取得される、K8s Containerレベルのメトリクス。
メトリクス: k8s.container.cpu.limit.desired
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.cpu.limit.desired | UpDownCounter | {cpu} | Maximum CPU resource limit as defined by the container spec. [1] | k8s.container |
[1]: This metric aligns with the limit in the
resources field of
K8s Container
(spec.containers[*].resources). Also see Desired Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.cpu.limit.current
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.cpu.limit.current | UpDownCounter | {cpu} | Maximum CPU resource limit currently configured for a running container. [1] | k8s.container |
[1]: This metric aligns with the limit in the
resources field of
K8s ContainerStatus
(status.containerStatuses[*].resources). Also see Actual Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.cpu.limit.utilization
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.cpu.limit.utilization | Gauge | 1 | The ratio of container CPU usage to its current CPU limit. [1] | k8s.container |
[1]: The current CPU limit reflects the actual resources applied to the container, as reported by ContainerStatus. The value range is [0.0,1.0]. A value of 1.0 means the container is using 100% of its actual CPU limit. If the CPU limit is not set, this metric SHOULD NOT be emitted for that container.
メトリクス: k8s.container.cpu.request.desired
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.cpu.request.desired | UpDownCounter | {cpu} | CPU resource requested as defined by the container spec. [1] | k8s.container |
[1]: This metric aligns with the request in the
resources field of
K8s Container
(spec.containers[*].resources). Also see Desired Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.cpu.request.current
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.cpu.request.current | UpDownCounter | {cpu} | CPU resource requested currently configured for a running container. [1] | k8s.container |
[1]: This metric aligns with the request in the
resources field of
K8s ContainerStatus
(status.containerStatuses[*].resources). Also see Actual Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.cpu.request.utilization
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.cpu.request.utilization | Gauge | 1 | The ratio of container CPU usage to its current CPU request. [1] | k8s.container |
[1]: The current CPU request reflects the request applied to the running container, as reported by ContainerStatus. The value range is [0.0,1.0]. A value of 1.0 means the container is using 100% of its actual CPU request. If the CPU request is not set, this metric SHOULD NOT be emitted for that container.
メトリクス: k8s.container.memory.limit.desired
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.memory.limit.desired | UpDownCounter | By | Maximum memory resource limit as defined by the container spec. [1] | k8s.container |
[1]: This metric aligns with the limit in the
resources field of
K8s Container
(spec.containers[*].resources). Also see Desired Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.memory.limit.current
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.memory.limit.current | UpDownCounter | By | Maximum memory resource limit currently configured for a running container. [1] | k8s.container |
[1]: This metric aligns with the limit in the
resources field of
K8s ContainerStatus
(status.containerStatuses[*].resources). Also see Actual Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.memory.request.desired
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.memory.request.desired | UpDownCounter | By | Memory resource requested as defined by the container spec. [1] | k8s.container |
[1]: This metric aligns with the request in the
resources field of
K8s Container
(spec.containers[*].resources). Also see Desired Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.memory.request.current
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.memory.request.current | UpDownCounter | By | Memory resource request currently configured for a running container. [1] | k8s.container |
[1]: This metric aligns with the request in the
resources field of
K8s ContainerStatus
(status.containerStatuses[*].resources). Also see Actual Resources in
https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/ for more details.
メトリクス: k8s.container.storage.limit
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.storage.limit | UpDownCounter | By | Maximum storage resource limit set for the container. [1] | k8s.container |
[1]: See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#resourcerequirements-v1-core for details.
メトリクス: k8s.container.storage.request
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.storage.request | UpDownCounter | By | Storage resource requested for the container. [1] | k8s.container |
[1]: See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#resourcerequirements-v1-core for details.
メトリクス: k8s.container.ephemeral_storage.limit
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.ephemeral_storage.limit | UpDownCounter | By | Maximum ephemeral storage resource limit set for the container. [1] | k8s.container |
[1]: See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#resourcerequirements-v1-core for details.
メトリクス: k8s.container.ephemeral_storage.request
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.ephemeral_storage.request | UpDownCounter | By | Ephemeral storage resource requested for the container. [1] | k8s.container |
[1]: See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#resourcerequirements-v1-core for details.
メトリクス: k8s.container.ephemeral_storage.usage
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.ephemeral_storage.usage | UpDownCounter | By | The ephemeral storage used by a container. [1] | k8s.container |
[1]: The value for this metric can be compared against metric.k8s.container.ephemeral_storage.request and metric.k8s.container.ephemeral_storage.limit.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.container.ephemeral_storage.fs_type | Required | string | The type of file system component for ephemeral storage. [1] | rootfs; logs |
[1] k8s.container.ephemeral_storage.fs_type: Eviction decisions based on ephemeral-storage resource limits are made based on the total container usage.
k8s.container.ephemeral_storage.fs_typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
logs | For the container’s log files usage (stdout/stderr). | |
rootfs | For the container’s writable layer usage. |
メトリクス: k8s.container.restart.count
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.restart.count | UpDownCounter | {restart} | Describes how many times the container has restarted (since the last counter reset). [1] | k8s.container |
[1]: This value is pulled directly from the K8s API and the value can go indefinitely high and be reset to 0 at any time depending on how your kubelet is configured to prune dead containers. It is best to not depend too much on the exact value but rather look at it as either == 0, in which case you can conclude there were no restarts in the recent past, or > 0, in which case you can conclude there were restarts in the recent past, and not try and analyze the value beyond that.
メトリクス: k8s.container.ready
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.container.ready | UpDownCounter | {container} | Indicates whether the container is currently marked as ready to accept traffic, based on its readiness probe (1 = ready, 0 = not ready). [1] | k8s.container |
[1]: This metric SHOULD reflect the value of the ready field in the
K8s ContainerStatus.
Resource Quotaメトリクス
Description: 名前空間k8s.resourcequotaの下で取得される、Resource Quotaレベルのメトリクス。
メトリクス: k8s.resourcequota.cpu.limit.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.cpu.limit.hard | UpDownCounter | {cpu} | The CPU limits in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.cpu.limit.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.cpu.limit.used | UpDownCounter | {cpu} | The CPU limits in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.cpu.request.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.cpu.request.hard | UpDownCounter | {cpu} | The CPU requests in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.cpu.request.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.cpu.request.used | UpDownCounter | {cpu} | The CPU requests in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.memory.limit.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.memory.limit.hard | UpDownCounter | By | The memory limits in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.memory.limit.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.memory.limit.used | UpDownCounter | By | The memory limits in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.memory.request.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.memory.request.hard | UpDownCounter | By | The memory requests in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.memory.request.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.memory.request.used | UpDownCounter | By | The memory requests in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.hugepage_count.request.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.hugepage_count.request.hard | UpDownCounter | {hugepage} | The huge page requests in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.hugepage.size | Required | string | The size (identifier) of the K8s huge page. | 2Mi |
メトリクス: k8s.resourcequota.hugepage_count.request.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.hugepage_count.request.used | UpDownCounter | {hugepage} | The huge page requests in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.hugepage.size | Required | string | The size (identifier) of the K8s huge page. | 2Mi |
メトリクス: k8s.resourcequota.storage.request.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.storage.request.hard | UpDownCounter | By | The storage requests in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | Conditionally Required [1] | string | The name of K8s StorageClass object. | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
メトリクス: k8s.resourcequota.storage.request.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.storage.request.used | UpDownCounter | By | The storage requests in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | Conditionally Required [1] | string | The name of K8s StorageClass object. | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
メトリクス: k8s.resourcequota.persistentvolumeclaim_count.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.persistentvolumeclaim_count.hard | UpDownCounter | {persistentvolumeclaim} | The total number of PersistentVolumeClaims that can exist in the namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | Conditionally Required [1] | string | The name of K8s StorageClass object. | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
メトリクス: k8s.resourcequota.persistentvolumeclaim_count.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.persistentvolumeclaim_count.used | UpDownCounter | {persistentvolumeclaim} | The total number of PersistentVolumeClaims that can exist in the namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | Conditionally Required [1] | string | The name of K8s StorageClass object. | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: The k8s.storageclass.name should be required when a resource quota is defined for a specific
storage class.
メトリクス: k8s.resourcequota.ephemeral_storage.request.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.ephemeral_storage.request.hard | UpDownCounter | By | The sum of local ephemeral storage requests in the namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.ephemeral_storage.request.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.ephemeral_storage.request.used | UpDownCounter | By | The sum of local ephemeral storage requests in the namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.ephemeral_storage.limit.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.ephemeral_storage.limit.hard | UpDownCounter | By | The sum of local ephemeral storage limits in the namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.ephemeral_storage.limit.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.ephemeral_storage.limit.used | UpDownCounter | By | The sum of local ephemeral storage limits in the namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
メトリクス: k8s.resourcequota.object_count.hard
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.object_count.hard | UpDownCounter | {object} | The object count limits in a specific namespace. | ||
| The value represents the configured quota limit of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the hard field of the
K8s ResourceQuotaStatus.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.resourcequota.resource_name | Required | string | The name of the K8s resource a resource quota defines. [1] | count/replicationcontrollers |
[1] k8s.resourcequota.resource_name: The value for this attribute can be either the full count/<resource>[.<group>] string (e.g., count/deployments.apps, count/pods), or, for certain core Kubernetes resources, just the resource name (e.g., pods, services, configmaps). Both forms are supported by Kubernetes for object count quotas. See Kubernetes Resource Quotas documentation for more details.
メトリクス: k8s.resourcequota.object_count.used
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.resourcequota.object_count.used | UpDownCounter | {object} | The object count limits in a specific namespace. | ||
| The value represents the current observed total usage of the resource in the namespace. [1] | k8s.resourcequota |
[1]: This metric is retrieved from the used field of the
K8s ResourceQuotaStatus.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.resourcequota.resource_name | Required | string | The name of the K8s resource a resource quota defines. [1] | count/replicationcontrollers |
[1] k8s.resourcequota.resource_name: The value for this attribute can be either the full count/<resource>[.<group>] string (e.g., count/deployments.apps, count/pods), or, for certain core Kubernetes resources, just the resource name (e.g., pods, services, configmaps). Both forms are supported by Kubernetes for object count quotas. See Kubernetes Resource Quotas documentation for more details.
Serviceメトリクス
メトリクス: k8s.service.endpoint.count
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.service.endpoint.count | Gauge | {endpoint} | Number of endpoints for a service by condition and address type. [1] | k8s.service |
[1]: This metric is derived from the Kubernetes EndpointSlice API. It reports the number of network endpoints backing a Service, broken down by their condition and address type.
In dual-stack or multi-protocol clusters, separate counts are reported for each address family (IPv4, IPv6, FQDN).
When the optional zone attribute is enabled, counts are further broken down by availability zone for zone-aware monitoring.
An endpoint may be reported under multiple conditions simultaneously (e.g., both serving and terminating during a graceful shutdown).
See K8s EndpointConditions for more details.
The conditions represent:
ready: Endpoints capable of receiving new connections.serving: Endpoints currently handling traffic.terminating: Endpoints that are being phased out but may still be handling existing connections.
For Services with publishNotReadyAddresses enabled (common for headless StatefulSets),
this metric will include endpoints that are published despite not being ready.
The k8s.service.publish_not_ready_addresses resource attribute indicates this setting.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.service.endpoint.address_type | Required | string | The address type of the service endpoint. [1] | IPv4; IPv6 | |
k8s.service.endpoint.condition | Required | string | The condition of the service endpoint. [2] | ready; serving; terminating | |
k8s.service.endpoint.zone | Recommended | string | The zone of the service endpoint. [3] | us-east-1a; us-west-2b; zone-a; `` |
[1] k8s.service.endpoint.address_type: The network address family or type of the endpoint.
This attribute aligns with the addressType field of the
K8s EndpointSlice.
It is used to differentiate metrics when a Service is backed by multiple address types
(e.g., in dual-stack clusters).
[2] k8s.service.endpoint.condition: The current operational condition of the service endpoint.
An endpoint can have multiple conditions set at once (e.g., both serving and terminating during rollout).
This attribute aligns with the condition fields in the K8s EndpointSlice.
[3] k8s.service.endpoint.zone: The zone where the endpoint is located, typically corresponding to a failure domain.
This attribute aligns with the zone field of endpoints in the
K8s EndpointSlice.
It enables zone-aware monitoring of service endpoint distribution and supports
features like Topology Aware Routing.
If the zone is not populated (e.g., nodes without the topology.kubernetes.io/zone label),
the attribute value will be an empty string.
k8s.service.endpoint.address_typeには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
FQDN | FQDN address type | |
IPv4 | IPv4 address type | |
IPv6 | IPv6 address type |
k8s.service.endpoint.conditionには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
ready | The endpoint is ready to receive new connections. | |
serving | The endpoint is currently handling traffic. | |
terminating | The endpoint is in the process of shutting down. |
メトリクス: k8s.service.load_balancer.ingress.count
このメトリクスはopt-inです。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.service.load_balancer.ingress.count | Gauge | {ingress} | Number of load balancer ingress points (external IPs/hostnames) assigned to the service. [1] | k8s.service |
[1]: This metric reports the number of external ingress points (IP addresses or hostnames) assigned to a LoadBalancer Service.
It is only emitted for Services of type LoadBalancer and reflects the assignments
made by the underlying infrastructure’s load balancer controller in the
.status.loadBalancer.ingress field.
A value of 0 indicates that no ingress points have been assigned yet (e.g., during provisioning).
A value greater than 1 may occur when multiple IPs or hostnames are assigned (e.g., dual-stack configurations).
This metric signals that external endpoints have been assigned by the load balancer controller, but it does not guarantee that the load balancer is healthy.
PersistentVolumeメトリクス
メトリクス: k8s.persistentvolume.status.phase
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.persistentvolume.status.phase | UpDownCounter | {persistentvolume} | Number of PersistentVolumes in a given phase. [1] | k8s.persistentvolume |
[1]: All possible phases should be reported at each interval to avoid gaps in the time series.
This metric is derived from the .status.phase field of the
K8s PersistentVolumeStatus.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.persistentvolume.status.phase | Required | string | The phase of the PersistentVolume. [1] | Pending; Available; Bound; Released; Failed |
[1] k8s.persistentvolume.status.phase: This attribute aligns with the phase field of the
K8s PersistentVolumeStatus.
k8s.persistentvolume.status.phaseには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
Available | The volume is available and not yet bound to a claim. | |
Bound | The volume is bound to a claim. | |
Failed | The volume has failed its automatic reclamation. | |
Pending | The volume is being provisioned. | |
Released | The claim has been deleted but the volume is not yet available. |
メトリクス: k8s.persistentvolume.storage.capacity
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.persistentvolume.storage.capacity | UpDownCounter | By | The storage capacity of the PersistentVolume. [1] | k8s.persistentvolume |
[1]: This metric is derived from the .spec.capacity.storage field of the K8s PersistentVolumeSpec.
PersistentVolumeClaimメトリクス
メトリクス: k8s.persistentvolumeclaim.status.phase
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.persistentvolumeclaim.status.phase | UpDownCounter | {persistentvolumeclaim} | Number of PersistentVolumeClaims in a given phase. [1] | k8s.persistentvolumeclaim |
[1]: All possible phases should be reported at each interval to avoid gaps in the time series.
This metric is derived from the .status.phase field of the
K8s PersistentVolumeClaimStatus.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
k8s.persistentvolumeclaim.status.phase | Required | string | The phase of the PersistentVolumeClaim. [1] | Pending; Bound; Lost |
[1] k8s.persistentvolumeclaim.status.phase: This attribute aligns with the phase field of the
K8s PersistentVolumeClaimStatus.
k8s.persistentvolumeclaim.status.phaseには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
Bound | The claim is bound to a volume. | |
Lost | The claim has lost its underlying volume (the volume does not exist anymore). | |
Pending | The claim has not yet been bound to a volume. |
メトリクス: k8s.persistentvolumeclaim.storage.request
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.persistentvolumeclaim.storage.request | UpDownCounter | By | The storage requested by the PersistentVolumeClaim. [1] | k8s.persistentvolumeclaim |
[1]: This metric is derived from the .spec.resources.requests.storage field of the K8s PersistentVolumeClaimSpec.
メトリクス: k8s.persistentvolumeclaim.storage.capacity
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
k8s.persistentvolumeclaim.storage.capacity | UpDownCounter | By | The actual storage capacity provisioned for the PersistentVolumeClaim. [1] | k8s.persistentvolumeclaim |
[1]: Only available when the PVC is bound. May differ from the requested capacity due to provisioner rounding.
This metric is derived from the .status.capacity.storage field of the
K8s PersistentVolumeClaimStatus.