179 lines
9.7 KiB
Markdown
179 lines
9.7 KiB
Markdown
# System
|
|
|
|
<!-- toc -->
|
|
|
|
- [CPU attributes](#cpu-attributes)
|
|
- [Memory attributes](#memory-attributes)
|
|
- [Paging attributes](#paging-attributes)
|
|
- [Filesystem attributes](#filesystem-attributes)
|
|
- [Network attributes](#network-attributes)
|
|
- [Process attributes](#process-attributes)
|
|
- [Deprecated System Attributes](#deprecated-system-attributes)
|
|
|
|
<!-- tocstop -->
|
|
|
|
<!-- semconv registry.system(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.device` | string | The device identifier | `(identifier)` |  |
|
|
<!-- endsemconv -->
|
|
|
|
## CPU attributes
|
|
|
|
<!-- semconv registry.system.cpu(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.cpu.logical_number` | int | The logical CPU number [0..n-1] | `1` |  |
|
|
| `system.cpu.state` | string | The state of the CPU | `idle`; `interrupt` |  |
|
|
|
|
`system.cpu.state` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `user` | user |  |
|
|
| `system` | system |  |
|
|
| `nice` | nice |  |
|
|
| `idle` | idle |  |
|
|
| `iowait` | iowait |  |
|
|
| `interrupt` | interrupt |  |
|
|
| `steal` | steal |  |
|
|
<!-- endsemconv -->
|
|
|
|
## Memory attributes
|
|
|
|
<!-- semconv registry.system.memory(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.memory.state` | string | The memory state | `free`; `cached` |  |
|
|
|
|
`system.memory.state` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `used` | used |  |
|
|
| `free` | free |  |
|
|
| `shared` | shared |  |
|
|
| `buffers` | buffers |  |
|
|
| `cached` | cached |  |
|
|
<!-- endsemconv -->
|
|
|
|
## Paging attributes
|
|
|
|
<!-- semconv registry.system.paging(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.paging.direction` | string | The paging access direction | `in` |  |
|
|
| `system.paging.state` | string | The memory paging state | `free` |  |
|
|
| `system.paging.type` | string | The memory paging type | `minor` |  |
|
|
|
|
`system.paging.direction` MUST be one of the following:
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `in` | in |  |
|
|
| `out` | out |  |
|
|
|
|
`system.paging.state` MUST be one of the following:
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `used` | used |  |
|
|
| `free` | free |  |
|
|
|
|
`system.paging.type` MUST be one of the following:
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `major` | major |  |
|
|
| `minor` | minor |  |
|
|
<!-- endsemconv -->
|
|
|
|
## Filesystem attributes
|
|
|
|
<!-- semconv registry.system.filesystem(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.filesystem.mode` | string | The filesystem mode | `rw, ro` |  |
|
|
| `system.filesystem.mountpoint` | string | The filesystem mount path | `/mnt/data` |  |
|
|
| `system.filesystem.state` | string | The filesystem state | `used` |  |
|
|
| `system.filesystem.type` | string | The filesystem type | `ext4` |  |
|
|
|
|
`system.filesystem.state` MUST be one of the following:
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `used` | used |  |
|
|
| `free` | free |  |
|
|
| `reserved` | reserved |  |
|
|
|
|
`system.filesystem.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `fat32` | fat32 |  |
|
|
| `exfat` | exfat |  |
|
|
| `ntfs` | ntfs |  |
|
|
| `refs` | refs |  |
|
|
| `hfsplus` | hfsplus |  |
|
|
| `ext4` | ext4 |  |
|
|
<!-- endsemconv -->
|
|
|
|
## Network attributes
|
|
|
|
<!-- semconv registry.system.network(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.network.state` | string | A stateless protocol MUST NOT set this attribute | `close_wait` |  |
|
|
|
|
`system.network.state` MUST be one of the following:
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `close` | close |  |
|
|
| `close_wait` | close_wait |  |
|
|
| `closing` | closing |  |
|
|
| `delete` | delete |  |
|
|
| `established` | established |  |
|
|
| `fin_wait_1` | fin_wait_1 |  |
|
|
| `fin_wait_2` | fin_wait_2 |  |
|
|
| `last_ack` | last_ack |  |
|
|
| `listen` | listen |  |
|
|
| `syn_recv` | syn_recv |  |
|
|
| `syn_sent` | syn_sent |  |
|
|
| `time_wait` | time_wait |  |
|
|
<!-- endsemconv -->
|
|
|
|
## Process attributes
|
|
|
|
<!-- semconv registry.system.process(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.process.status` | string | The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) | `running` |  |
|
|
|
|
`system.process.status` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `running` | running |  |
|
|
| `sleeping` | sleeping |  |
|
|
| `stopped` | stopped |  |
|
|
| `defunct` | defunct |  |
|
|
<!-- endsemconv -->
|
|
|
|
## Deprecated System Attributes
|
|
|
|
<!-- semconv registry.system.deprecated(omit_requirement_level) -->
|
|
| Attribute | Type | Description | Examples | Stability |
|
|
|---|---|---|---|---|
|
|
| `system.processes.status` | string | Deprecated, use `system.process.status` instead. | `running` | <br>Replaced by `system.process.status`. |
|
|
|
|
`system.processes.status` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|
|
|
|
| Value | Description | Stability |
|
|
|---|---|---|
|
|
| `running` | running |  |
|
|
| `sleeping` | sleeping |  |
|
|
| `stopped` | stopped |  |
|
|
| `defunct` | defunct |  |
|
|
<!-- endsemconv -->
|