> Source: https://www.ymotongpoo.com/works/otel-specs-ja/semconv/system/system-metrics/


# システムメトリクスに関するセマンティック規約

**ステータス**: [Development][DocumentStatus]

この文書では、OpenTelemetryにおける一般的なシステムレベルのメトリクスのInstrumentと属性について説明します。この仕様で明示的に定義されていないInstrumentを作成する際は、[汎用のメトリクスセマンティック規約](/works/otel-specs-ja/semconv/general/metrics/#一般的なガイドライン)も参照してください。

`system.*`名前空間は、ホストのメトリクスを報告するために専ら使用すべきです（SHOULD）。
`system.*`名前空間は、対象システム（物理サーバー、仮想マシンなど）の内部からメトリクスが収集される場合にのみ使用すべきです（SHOULD）。
技術固有の明確に定義されたAPI（KubeletのAPIやコンテナランタイムなど）から収集されるメトリクスは、それぞれの名前空間（`k8s.*`、`container.*`など）の下で報告すべきです。
ホストに関連するリソース属性は、`host.*`名前空間の下で報告すべきです（SHOULD）。

> [!IMPORTANT]
> [この文書のv1.21.0](https://github.com/open-telemetry/semantic-conventions/blob/v1.21.0/docs/system/system-metrics.md)
> 以前のバージョンを使っている既存の計装やコレクターは、次に従うべきです。
>
> * System semantic conventionsが安定版として宣言されるまで、この文書の破壊的変更を取り込むべきではありません（SHOULD NOT）。規約には、属性、メトリクス名、計測単位などが含まれますが、これらに限定されません。
> * 移行計画が確定した後、ユーザーが新しい規約にopt-inできるようにする制御機構を導入すべきです（SHOULD）。

## 汎用メトリクス

### メトリクス: `system.uptime`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.uptime -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.uptime` | Gauge | `s` | システムが実行されている時間。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 計装は、`double`型のgaugeを使用し、利用可能な最高精度の浮動小数点数で稼働時間を秒単位で計測すべきです（SHOULD）。
実際の精度は計装とオペレーティングシステムに依存します。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## プロセッサーメトリクス

**Description:** 名前空間`system.cpu`の下で取得される、システムレベルのプロセッサーメトリクス。

### メトリクス: `system.cpu.physical.count`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.cpu.physical.count -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.cpu.physical.count` | UpDownCounter | `{cpu}` | ハードウェア上の実際の物理プロセッサーコアの数を報告します。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** ソケット数にソケットあたりのコア数を乗じて算出されます

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.cpu.logical.count`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.cpu.logical.count -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.cpu.logical.count` | UpDownCounter | `{cpu}` | オペレーティングシステムがマルチタスクを管理するために作成した論理（仮想）プロセッサーコアの数を報告します。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** ソケット数にソケットあたりのコア数、さらにコアあたりのスレッド数を乗じて算出されます

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.cpu.time`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.cpu.time -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.cpu.time` | Counter | `s` | 各論理CPUが各モードで消費した秒数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`cpu.mode`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/cpu/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | CPUのモード[1] | `user`; `system` |
| [`cpu.logical_number`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/cpu/) | ![Development](https://img.shields.io/badge/-development-blue) | `Opt-In` | int | 論理CPU番号 [0..n-1] | `1` |

**[1] `cpu.mode`:** 次の状態を使用すべきです（SHOULD）: `user`、`system`、`nice`、`idle`、`iowait`、`interrupt`、`steal`

---

`cpu.mode`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `idle` | Idle | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `interrupt` | Interrupt | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `iowait` | IO Wait | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `nice` | Nice | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `steal` | Steal | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `system` | System | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `user` | User | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.cpu.frequency`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.cpu.frequency -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.cpu.frequency` | Gauge | `Hz` | 論理CPUの動作周波数（ヘルツ単位）。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`cpu.logical_number`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/cpu/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | int | 論理CPU番号 [0..n-1] | `1` |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.cpu.utilization`

このメトリクスは[opt-in][MetricOptIn]です。

<!-- semconv metric.system.cpu.utilization -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.cpu.utilization` | Gauge | `1` | 各論理CPUについて、計測間隔における累積CPU時間（cpu.time）の変化量を経過時間で割った値として使用率が算出されます。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`cpu.mode`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/cpu/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | CPUのモード[1] | `user`; `system` |
| [`cpu.logical_number`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/cpu/) | ![Development](https://img.shields.io/badge/-development-blue) | `Opt-In` | int | 論理CPU番号 [0..n-1] | `1` |

**[1] `cpu.mode`:** 次のモードを使用すべきです（SHOULD）: `user`、`system`、`nice`、`idle`、`iowait`、`interrupt`、`steal`

---

`cpu.mode`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `idle` | Idle | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `interrupt` | Interrupt | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `iowait` | IO Wait | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `nice` | Nice | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `steal` | Steal | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `system` | System | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `user` | User | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## メモリメトリクス

**Description:** 名前空間`system.memory`の下で取得される、システムレベルのメモリメトリクス。
これには[ページング/スワップメモリ](#ページングスワップメトリクス)は含まれません。

### メトリクス: `system.memory.usage`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.memory.usage -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.usage` | UpDownCounter | `By` | 状態別に使用中のメモリを報告します。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.memory.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | メモリの状態 | `free`; `cached` |

---

`system.memory.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `buffers` | buffers | ![Development](https://img.shields.io/badge/-development-blue) |
| `cached` | cached | ![Development](https://img.shields.io/badge/-development-blue) |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | 実際に使用中の仮想メモリ量（バイト単位）。[1] | ![Development](https://img.shields.io/badge/-development-blue) |

**[1]:** オペレーティングシステムのメトリクスに基づく算出。Linuxでは、これは/proc/meminfoの「MemTotal - MemAvailable」に相当し、freeやcached、buffersに基づく古い計算式よりも、アプリケーションが実際に使用しているメモリをより正確に反映します。MemAvailableが利用できない場合は、それらの古い計算式にフォールバックすることがあります。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.limit`

このメトリクスは[opt-in][MetricOptIn]です。

<!-- semconv metric.system.memory.limit -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.limit` | UpDownCounter | `By` | システムで利用可能な仮想メモリの総量。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.utilization`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.memory.utilization -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.utilization` | Gauge | `1` | 使用中のメモリバイト数の割合。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.memory.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | メモリの状態 | `free`; `cached` |

---

`system.memory.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `buffers` | buffers | ![Development](https://img.shields.io/badge/-development-blue) |
| `cached` | cached | ![Development](https://img.shields.io/badge/-development-blue) |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | 実際に使用中の仮想メモリ量（バイト単位）。[1] | ![Development](https://img.shields.io/badge/-development-blue) |

**[1]:** オペレーティングシステムのメトリクスに基づく算出。Linuxでは、これは/proc/meminfoの「MemTotal - MemAvailable」に相当し、freeやcached、buffersに基づく古い計算式よりも、アプリケーションが実際に使用しているメモリをより正確に反映します。MemAvailableが利用できない場合は、それらの古い計算式にフォールバックすることがあります。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## ページング/スワップメトリクス

**Description:** 名前空間`system.paging`の下で取得される、システムレベルのページング/スワップメモリメトリクス。

### メトリクス: `system.paging.usage`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.paging.usage -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.paging.usage` | UpDownCounter | `By` | UNIXのswapまたはWindowsのpagefile使用量。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ページング操作を管理するデバイスの一意な識別子。 | `/dev/dm-0` |
| [`system.paging.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | メモリページングの状態 | `free` |

---

`system.paging.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | used | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.paging.utilization`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.paging.utilization -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.paging.utilization` | Gauge | `1` | swap（UNIX）またはpagefile（Windows）の使用率。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ページング操作を管理するデバイスの一意な識別子。 | `/dev/dm-0` |
| [`system.paging.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | メモリページングの状態 | `free` |

---

`system.paging.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | used | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.paging.faults`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.paging.faults -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.paging.faults` | Counter | `{fault}` | ページフォルトの数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.paging.fault.type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ページングフォルトの種別 | `minor` |

---

`system.paging.fault.type`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `major` | major | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `minor` | minor | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.paging.operations`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.paging.operations -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.paging.operations` | Counter | `{operation}` | ページング操作の数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.paging.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ページングのアクセス方向 | `in` |
| [`system.paging.fault.type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ページングフォルトの種別 | `minor` |

---

`system.paging.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `in` | in | ![Development](https://img.shields.io/badge/-development-blue) |
| `out` | out | ![Development](https://img.shields.io/badge/-development-blue) |

---

`system.paging.fault.type`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `major` | major | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `minor` | minor | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## ディスクコントローラーメトリクス

**Description:** 名前空間`system.disk`の下で取得される、システムレベルのディスク性能メトリクス。

### メトリクス: `system.disk.io`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.disk.io -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.disk.io` | Counter | `By` | 転送されたディスクバイト数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`disk.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/disk/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ディスクIO操作の方向。 | `read` |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

---

`disk.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `read` | read | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `write` | write | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.disk.operations`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.disk.operations -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.disk.operations` | Counter | `{operation}` | ディスク操作の回数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`disk.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/disk/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ディスクIO操作の方向。 | `read` |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

---

`disk.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `read` | read | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `write` | write | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.disk.io_time`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.disk.io_time -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.disk.io_time` | Counter | `s` | ディスクが活性化していた時間。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** I/Oパス上で使用された実際の経過時間（「壁時計時間」。並列で実行されている操作の時間は数えない）。次のように計測されます。

- Linux: [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats)のフィールド13
- Windows:
  [「Disk\% Idle Time」](https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained)
  パフォーマンスカウンターの補数: `uptime * (100 - "Disk\% Idle Time") / 100`

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.disk.operation_time`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.disk.operation_time -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.disk.operation_time` | Counter | `s` | 各操作の完了に要した時間の合計。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 各リクエストが要した時間の合計であるため、並列で発行されたリクエストはそれぞれこの値の増加に寄与します。次のように計測されます。

- Linux: [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats)のフィールド7と11
- Windows: 「Avg. Disk sec/Read」パフォーマンスカウンターと「Disk Reads/sec」パフォーマンスカウンターの積（書き込みについても同様）

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`disk.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/disk/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ディスクIO操作の方向。 | `read` |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

---

`disk.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `read` | read | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `write` | write | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.disk.merged`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.disk.merged -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.disk.merged` | Counter | `{operation}` | 単一の物理ディスクアクセス操作にマージされたディスクの読み書きの数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`disk.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/disk/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ディスクIO操作の方向。 | `read` |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

---

`disk.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `read` | read | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `write` | write | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.disk.limit`

このメトリクスは[opt-in][MetricOptIn]です。

<!-- semconv metric.system.disk.limit -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.disk.limit` | UpDownCounter | `By` | ディスクの総ストレージ容量。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## ファイルシステムメトリクス

**Description:** 名前空間`system.filesystem`の下で取得される、システムレベルのファイルシステムメトリクス。

### メトリクス: `system.filesystem.usage`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.filesystem.usage -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.filesystem.usage` | UpDownCounter | `By` | ファイルシステムの状態別の容量使用状況を報告します。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 異なる`system.filesystem.state`属性にわたるすべての`system.filesystem.usage`値の合計は、ファイルシステムの総ストレージ容量、つまり`system.filesystem.limit`と等しくなるべきです（SHOULD）。

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムが存在するデバイスの識別子。 | `/dev/sda`; `\network-drive` |
| [`system.filesystem.mode`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムのモード | `rw, ro` |
| [`system.filesystem.mountpoint`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムのマウントパス | `/mnt/data` |
| [`system.filesystem.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムの状態 | `used` |
| [`system.filesystem.type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムの種別 | `ext4` |

---

`system.filesystem.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `reserved` | reserved | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | used | ![Development](https://img.shields.io/badge/-development-blue) |

---

`system.filesystem.type`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `exfat` | exfat | ![Development](https://img.shields.io/badge/-development-blue) |
| `ext4` | ext4 | ![Development](https://img.shields.io/badge/-development-blue) |
| `fat32` | fat32 | ![Development](https://img.shields.io/badge/-development-blue) |
| `hfsplus` | hfsplus | ![Development](https://img.shields.io/badge/-development-blue) |
| `ntfs` | ntfs | ![Development](https://img.shields.io/badge/-development-blue) |
| `refs` | refs | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.filesystem.utilization`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.filesystem.utilization -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.filesystem.utilization` | Gauge | `1` | 使用中のファイルシステムバイト数の割合。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムが存在するデバイスの識別子。 | `/dev/sda`; `\network-drive` |
| [`system.filesystem.mode`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムのモード | `rw, ro` |
| [`system.filesystem.mountpoint`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムのマウントパス | `/mnt/data` |
| [`system.filesystem.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムの状態 | `used` |
| [`system.filesystem.type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムの種別 | `ext4` |

---

`system.filesystem.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `reserved` | reserved | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | used | ![Development](https://img.shields.io/badge/-development-blue) |

---

`system.filesystem.type`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `exfat` | exfat | ![Development](https://img.shields.io/badge/-development-blue) |
| `ext4` | ext4 | ![Development](https://img.shields.io/badge/-development-blue) |
| `fat32` | fat32 | ![Development](https://img.shields.io/badge/-development-blue) |
| `hfsplus` | hfsplus | ![Development](https://img.shields.io/badge/-development-blue) |
| `ntfs` | ntfs | ![Development](https://img.shields.io/badge/-development-blue) |
| `refs` | refs | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.filesystem.limit`

このメトリクスは[opt-in][MetricOptIn]です。

<!-- semconv metric.system.filesystem.limit -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.filesystem.limit` | UpDownCounter | `By` | ファイルシステムの総ストレージ容量。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムが存在するデバイスの識別子。 | `/dev/sda`; `\network-drive` |
| [`system.filesystem.mode`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムのモード | `rw, ro` |
| [`system.filesystem.mountpoint`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムのマウントパス | `/mnt/data` |
| [`system.filesystem.type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルシステムの種別 | `ext4` |

---

`system.filesystem.type`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `exfat` | exfat | ![Development](https://img.shields.io/badge/-development-blue) |
| `ext4` | ext4 | ![Development](https://img.shields.io/badge/-development-blue) |
| `fat32` | fat32 | ![Development](https://img.shields.io/badge/-development-blue) |
| `hfsplus` | hfsplus | ![Development](https://img.shields.io/badge/-development-blue) |
| `ntfs` | ntfs | ![Development](https://img.shields.io/badge/-development-blue) |
| `refs` | refs | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.filesystem.lock.count`

<!-- semconv metric.system.filesystem.lock.count -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.filesystem.lock.count` | UpDownCounter | `{lock}` | ファイルシステムロックの数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`file.lock.mechanism`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/file/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)で示されるようなロック機構 | `POSIX`; `FLOCK`; `DELEG`; `LEASE` |
| [`file.lock.mode`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/file/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)で文書化されているようなロックまたは操作のモード | `ADVISORY`; `MANDATORY`; `BREAKING`; `ACTIVE`; `BREAKER` |
| [`file.lock.type`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/file/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | 例えば[POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)のl_typeで表されるようなロックの種別。 | `read` |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ファイルが存在するデバイスのOS固有の識別子。 | `08:01` |

---

`file.lock.type`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `read` | read | ![Development](https://img.shields.io/badge/-development-blue) |
| `write` | write | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## ネットワークメトリクス

**Description:** 名前空間`system.network`の下で取得される、システムレベルのネットワークメトリクス。

### メトリクス: `system.network.packet.dropped`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.network.packet.dropped -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.network.packet.dropped` | Counter | `{packet}` | エラーがなかったにもかかわらずドロップまたは破棄されたパケットの数。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 次のように計測されます。

- Linux: `/proc/net/dev`の`drop`列（[出典](https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html)）
- Windows: [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2)から得られる
  [`InDiscards`/`OutDiscards`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2)

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`network.interface.name`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ネットワークインターフェース名。 | `lo`; `eth0` |
| [`network.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | 観測対象ホストの物理または仮想ネットワークインターフェースの視点から見たトラフィックの方向。ステートフルな接続やネットワークフローの論理的な方向を表すために使用すべきではありません。 | `transmit` |

---

`network.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `receive` | receive | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `transmit` | transmit | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.network.packet.count`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.network.packet.count -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.network.packet.count` | Counter | `{packet}` | 転送されたパケットの数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`network.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | 観測対象ホストの物理または仮想ネットワークインターフェースの視点から見たトラフィックの方向。ステートフルな接続やネットワークフローの論理的な方向を表すために使用すべきではありません。 | `transmit` |
| [`system.device`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | デバイス識別子 | `(identifier)` |

---

`network.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `receive` | receive | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `transmit` | transmit | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.network.errors`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.network.errors -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.network.errors` | Counter | `{error}` | 検出されたネットワークエラーの数。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 次のように計測されます。

- Linux: `/proc/net/dev`の`errs`列（[出典](https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html)）
- Windows: [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2)から得られる
  [`InErrors`/`OutErrors`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2)。

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`network.interface.name`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ネットワークインターフェース名。 | `lo`; `eth0` |
| [`network.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | 観測対象ホストの物理または仮想ネットワークインターフェースの視点から見たトラフィックの方向。ステートフルな接続やネットワークフローの論理的な方向を表すために使用すべきではありません。 | `transmit` |

---

`network.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `receive` | receive | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `transmit` | transmit | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.network.io`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.network.io -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.network.io` | Counter | `By` | 送受信されたバイト数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`network.interface.name`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ネットワークインターフェース名。 | `lo`; `eth0` |
| [`network.io.direction`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | 観測対象ホストの物理または仮想ネットワークインターフェースの視点から見たトラフィックの方向。ステートフルな接続やネットワークフローの論理的な方向を表すために使用すべきではありません。 | `transmit` |

---

`network.io.direction`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `receive` | receive | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `transmit` | transmit | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.network.connection.count`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.network.connection.count -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.network.connection.count` | UpDownCounter | `{connection}` | 接続の数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`network.connection.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | ネットワーク接続の状態[1] | `close_wait` |
| [`network.interface.name`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | ネットワークインターフェース名。 | `lo`; `eth0` |
| [`network.transport`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/network/) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Recommended` | string | [OSIトランスポート層](https://wikipedia.org/wiki/Transport_layer)または[プロセス間通信の方法](https://wikipedia.org/wiki/Inter-process_communication)。[2] | `tcp`; `udp` |

**[1] `network.connection.state`:** 接続状態は[rfc9293](https://datatracker.ietf.org/doc/html/rfc9293#section-3.3.2)の一部として定義されています

**[2] `network.transport`:** この値は小文字に正規化すべきです（SHOULD）。

ポート番号はトランスポートを知らなければ曖昧であるため、ポート番号を設定する際は常にトランスポートも設定することを検討してください。例えば、異なるプロセスがTCPポート12345とUDPポート12345の両方をリスンしている場合があります。

---

`network.connection.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `close_wait` | close_wait | ![Development](https://img.shields.io/badge/-development-blue) |
| `closed` | closed | ![Development](https://img.shields.io/badge/-development-blue) |
| `closing` | closing | ![Development](https://img.shields.io/badge/-development-blue) |
| `established` | established | ![Development](https://img.shields.io/badge/-development-blue) |
| `fin_wait_1` | fin_wait_1 | ![Development](https://img.shields.io/badge/-development-blue) |
| `fin_wait_2` | fin_wait_2 | ![Development](https://img.shields.io/badge/-development-blue) |
| `last_ack` | last_ack | ![Development](https://img.shields.io/badge/-development-blue) |
| `listen` | listen | ![Development](https://img.shields.io/badge/-development-blue) |
| `syn_received` | syn_received | ![Development](https://img.shields.io/badge/-development-blue) |
| `syn_sent` | syn_sent | ![Development](https://img.shields.io/badge/-development-blue) |
| `time_wait` | time_wait | ![Development](https://img.shields.io/badge/-development-blue) |

---

`network.transport`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `pipe` | 名前付きまたは名前なしパイプ。 | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `quic` | QUIC | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `tcp` | TCP | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `udp` | UDP | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `unix` | UNIXドメインソケット | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## 集計されたシステムプロセスメトリクス

**Description:** 名前空間`system.process`の下で取得される、システムレベルの集計されたプロセスメトリクス。
個々のプロセスレベルのメトリクスについては、[プロセスメトリクス](/works/otel-specs-ja/semconv/system/process-metrics/)を参照してください。

### メトリクス: `system.process.count`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.process.count -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.process.count` | UpDownCounter | `{process}` | 各状態にあるプロセスの総数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`process.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/process/) | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) | `Recommended` | string | プロセスの状態。例えば[Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) | `running` |

---

`process.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `defunct` | defunct | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `running` | running | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `sleeping` | sleeping | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |
| `stopped` | stopped | ![Release Candidate](https://img.shields.io/badge/-rc-mediumorchid) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.process.created`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.process.created -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.process.created` | Counter | `{process}` | ホストの稼働時間中に作成されたプロセスの総数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.process.limit`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.process.limit -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.process.limit` | UpDownCounter | `{thread}` | オペレーティングシステムが許可する同時実行プロセス/タスクの最大数。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** Linuxでは、これは`/proc/sys/kernel/pid_max`または`/proc/sys/kernel/threads-max`に相当します。
ユーザーごとのプロセス上限は、`getrlimit(RLIMIT_NPROC)`を通じて取得することもできます。
BSD系システムでは、これは`sysctl kern.maxproc`に相当します。このメトリクスはWindowsシステムではサポートされません。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

## `system.memory.{os}.` - OS固有のシステムメモリメトリクス

複数のOSにわたって意味が異なり競合するシステムレベルのメトリクスのInstrument名には、`system.{os}.`を前置したうえで、CPU、メモリ、ネットワークなどの各エンティティについて上記に挙げた階層に従うべきです。

例えば、[UNIXのload average](https://wikipedia.org/wiki/Load_(computing))は、与えられた間隔にわたるものとしてはよく標準化されておらず、似たような負荷であっても異なるUNIX系OS間でその値は異なる場合があります。

> Without getting into the vagaries of every Unix-like operating system in
> existence, the load average more or less represents the average number of
> processes that are in the running (using the CPU) or runnable (waiting for
> the CPU) states. One notable exception exists: Linux includes processes in
> uninterruptible sleep states, typically waiting for some I/O activity to
> complete. This can markedly increase the load average on Linux systems.
>
> （既存のあらゆるUnix系オペレーティングシステムの細かな違いに踏み込まずに言えば、load averageは大まかに、実行中（CPUを使用している）または実行可能（CPUを待っている）状態にあるプロセスの平均数を表す。一つ注目すべき例外がある。Linuxは、通常は何らかのI/O活動の完了を待っている、中断不可能なスリープ状態のプロセスも含める。これにより、Linuxシステムではload averageが著しく高くなることがある。）

（[引用元](https://github.com/torvalds/linux/blob/e4cbce4d131753eca271d9d67f58c6377f27ad21/kernel/sched/loadavg.c#L11-L18)、
[Linuxのソースコード](https://github.com/torvalds/linux/blob/e4cbce4d131753eca271d9d67f58c6377f27ad21/kernel/sched/loadavg.c#L11-L18)）

Linuxにおける1分間のload averageのInstrumentは、上記で提案した`cpu`名を再利用し、このメトリクスをOSごとに分けるための`{os}`プレフィックスを持たせて、`system.linux.cpu.load_1m`と命名できます。

### メトリクス: `system.memory.linux.available`

<!-- markdownlint-disable -->
<!-- semconv metric.system.memory.linux.available -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.available` | UpDownCounter | `By` | スワップを引き起こさずに新しいアプリケーションを起動するために利用可能なメモリの推定量。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** これは、`state=free`の`system.memory.usage`メトリクスの代替です。
Linuxはバージョン3.14から「available」メモリを公開しています。これは「free」メモリを基準として、そこにカーネル固有の値を加味します。
これは、単なる「free」メモリよりも正確であるとされています。
計算方法の参考として、[こちら](https://superuser.com/a/980821)を参照してください。
[/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html)の`MemAvailable`も参照してください。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->
<!-- markdownlint-restore-->

### メトリクス: `system.memory.linux.hugepages.limit`

<!-- semconv metric.system.memory.linux.hugepages.limit -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.hugepages.limit` | UpDownCounter | `{page}` | 利用可能なhugepageの総数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.hugepages.page_size`

<!-- semconv metric.system.memory.linux.hugepages.page_size -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.hugepages.page_size` | UpDownCounter | `By` | システムのhugepageサイズ（バイト単位）。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.hugepages.reserved`

<!-- semconv metric.system.memory.linux.hugepages.reserved -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.hugepages.reserved` | UpDownCounter | `{page}` | 予約済みhugepageの数。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 割り当ての確約がされているが、まだ実際の割り当てが行われていないhugepage。
予約済みページはすでに`free`ページに数えられているため、`usage`状態ではなく別のメトリクスとして報告されます。
これらは、非予約の割り当てには使用できない`free`ページの部分集合を表します。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.hugepages.surplus`

<!-- semconv metric.system.memory.linux.hugepages.surplus -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.hugepages.surplus` | UpDownCounter | `{page}` | サープラスhugepageの数。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** 永続プールを超えて過剰にコミットされたhugepage。
サープラスページは`used`または`free`のいずれの状態にもなり得るため、`usage`状態ではなく別のメトリクスとして報告されます。
`usage`にサープラスページを含めると、`usage`状態の合計が`limit`と一致するという規約が破られます。

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.hugepages.usage`

<!-- semconv metric.system.memory.linux.hugepages.usage -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.hugepages.usage` | UpDownCounter | `{page}` | 状態別に使用中のhugepageの数。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.memory.linux.hugepages.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | LinuxのHugePagesメモリの状態 | `free`; `used` |

---

`system.memory.linux.hugepages.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | used | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.hugepages.utilization`

<!-- semconv metric.system.memory.linux.hugepages.utilization -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.hugepages.utilization` | Gauge | `1` | 状態別に使用中のhugepageの割合。 | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.memory.linux.hugepages.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | LinuxのHugePagesメモリの状態 | `free`; `used` |

---

`system.memory.linux.hugepages.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `free` | free | ![Development](https://img.shields.io/badge/-development-blue) |
| `used` | used | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.shared`

このメトリクスは[opt-in][MetricOptIn]です。

<!-- semconv metric.system.memory.linux.shared -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.shared` | UpDownCounter | `By` | 使用中の共有メモリ（主にtmpfsによるもの）。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** [`free`コマンド](https://man7.org/linux/man-pages/man1/free.1.html)の`shared`、または
[`/proc/meminfo`](https://man7.org/linux/man-pages/man5/proc.5.html)の`Shmem`に相当します

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### メトリクス: `system.memory.linux.slab.usage`

このメトリクスは[推奨][MetricRecommended]です。

<!-- semconv metric.system.memory.linux.slab.usage -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
| -------- | --------------- | ----------- | -------------- | --------- | ------ |
| `system.memory.linux.slab.usage` | UpDownCounter | `By` | Linuxカーネルが、頻繁に使用されるオブジェクトのキャッシュを管理するために使用しているメモリを報告します。[1] | ![Development](https://img.shields.io/badge/-development-blue) | [`host`](https://opentelemetry.io/docs/specs/semconv/registry/entities/host/#host) |

**[1]:** `memory.linux.slab.usage`における`reclaimable`状態と`unreclaimable`状態の値の合計は、システムで利用可能なslabメモリの総量と等しくなるべきです（SHOULD）。
slabメモリの総量は一定ではなく、時間とともに変化することがあります。
[Slabアロケーター](https://blogs.oracle.com/linux/post/understanding-linux-kernel-memory-statistics)と、[/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html)の`Slab`も参照してください。

**Attributes:**

| Key | Stability | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- |
| [`system.memory.linux.slab.state`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/system/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | LinuxのSlabメモリの状態 | `reclaimable`; `unreclaimable` |

---

`system.memory.linux.slab.state`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `reclaimable` | reclaimable | ![Development](https://img.shields.io/badge/-development-blue) |
| `unreclaimable` | unreclaimable | ![Development](https://img.shields.io/badge/-development-blue) |

<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

[DocumentStatus]: https://opentelemetry.io/docs/specs/otel/document-status
[MetricRecommended]: /works/otel-specs-ja/semconv/general/metric-requirement-level/#recommended
[MetricOptIn]: /works/otel-specs-ja/semconv/general/metric-requirement-level/#opt-in

