본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

OS 프로세스 메트릭을 위한 시맨틱 컨벤션

원문 보기 위키 갱신

운영체제(OS) 프로세스 수준 메트릭을 위한 계측기(instrument)와 속성에 대해 설명하는 문서예요.

출처: 문서

본문

이 문서는 OpenTelemetry에서 일반적인 OS 프로세스 수준 메트릭을 위한 계측기와 속성을 설명해요. 이 문서에 명시적으로 정의되지 않은 계측기를 만들 때는 일반적인 메트릭 시맨틱 컨벤션도 함께 고려해 주세요. OS 프로세스 메트릭은 프로그램의 런타임 환경과는 관련이 없으며, 운영체제로부터 측정값을 가져와야 해요. 런타임 환경 메트릭에 대해서는 런타임 환경(runtime environment) 메트릭 시맨틱 컨벤션을 참고해 주세요.

  • Process metrics

  • Metric: process.cpu.time

  • Metric: process.cpu.utilization

  • Metric: process.memory.usage

  • Metric: process.memory.virtual

  • Metric: process.memory.utilization

  • Metric: process.disk.io

  • Metric: process.disk.operations

  • Metric: process.network.io

  • Metric: process.thread.count

  • Metric: process.unix.file_descriptor.count

  • Metric: process.windows.handle.count

  • Metric: process.context_switches

  • Metric: process.paging.faults

  • Metric: process.signals_pending

  • Metric: process.uptime

Important

문서 v1.21.0(또는 그 이전)을 사용하는 기존 계측 및 컬렉터:

  • 시스템 시맨틱 컨벤션이 안정화(stable)로 표시될 때까지 문서의 브레이킹 체인지(breaking changes)를 채택하지 않아야 해요(SHOULD NOT). 컨벤션에는 속성, 메트릭 이름, 측정 단위(unit of measure)가 포함되지만 이에 국한되지는 않아요.
  • 마이그레이션 계획이 확정된 후 사용자가 새 컨벤션에 옵트인(opt-in)할 수 있도록 하는 제어 메커니즘을 도입해야 해요(SHOULD).

Process metrics

Metric: process.cpu.time

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.cpu.time | Counter | s | 서로 다른 CPU 모드로 구분된 총 CPU 시간(초)이에요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| cpu.mode | | Required | string | 이 데이터 포인트의 CPU 모드예요. [1] | user; system

[1] cpu.mode: cpu.mode에 대해 SHOULD로 사용해야 하는 값은 user, system, wait이에요. 특정 플랫폼이 고유한 모드 집합을 요구하지 않는 한 다른 모드는 사용하지 않아야 해요(SHOULD NOT).

cpu.mode는 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| idle | Idle |

| interrupt | Interrupt |

| iowait | IO Wait |

| nice | Nice |

| steal | Steal |

| system | System |

| user | User |

Metric: process.cpu.utilization

이 메트릭은 옵트인(opt-in)이에요.

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.cpu.utilization | Gauge | 1 | 마지막 측정 이후 process.cpu.time의 차이를 경과 시간과 프로세스에 사용 가능한 CPU 수로 나눈 값이에요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| cpu.mode | | Required | string | 이 데이터 포인트의 CPU 모드예요. [1] | user; system

[1] cpu.mode: cpu.mode에 대해 SHOULD로 사용해야 하는 값은 user, system, wait이에요. 특정 플랫폼이 고유한 모드 집합을 요구하지 않는 한 다른 모드는 사용하지 않아야 해요(SHOULD NOT).

cpu.mode는 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| idle | Idle |

| interrupt | Interrupt |

| iowait | IO Wait |

| nice | Nice |

| steal | Steal |

| system | System |

| user | User |

Metric: process.memory.usage

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.memory.usage | UpDownCounter | By | 사용 중인 물리 메모리의 양이에요. | | process

Metric: process.memory.virtual

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.memory.virtual | UpDownCounter | By | 커밋된 가상 메모리의 양이에요. | | process

Metric: process.memory.utilization

이 메트릭은 옵트인(opt-in)이에요.

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.memory.utilization | Gauge | 1 | 프로세스가 사용하는 총 물리 메모리의 백분율이에요. | | process

Metric: process.disk.io

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.disk.io | Counter | By | 전송된 디스크 바이트 수예요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| disk.io.direction | | Required | string | 디스크 IO 작업 방향이에요. | read

disk.io.direction은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| read | read |

| write | write |

Metric: process.disk.operations

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.disk.operations | Counter | {operation} | 프로세스가 수행한 디스크 작업 수예요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| disk.io.direction | | Required | string | 디스크 IO 작업 방향이에요. | read

disk.io.direction은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| read | read |

| write | write |

Metric: process.network.io

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.network.io | Counter | By | 전송된 네트워크 바이트 수예요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| network.io.direction | | Required | string | 관찰하는 호스트의 물리적 또는 가상 네트워크 인터페이스 관점에서 본 트래픽 방향이에요. 상태 유지 커넥션(stateful connection)이나 네트워크 흐름의 논리적 방향을 나타내는 데 사용해서는 안 돼요. | transmit

network.io.direction은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| receive | receive |

| transmit | transmit |

Metric: process.thread.count

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.thread.count | UpDownCounter | {thread} | 프로세스의 스레드 수예요. | | process

Metric: process.unix.file_descriptor.count

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.unix.file_descriptor.count | UpDownCounter | {file_descriptor} | 프로세스가 사용 중인 UNIX 파일 디스크립터 수예요. | | process

Metric: process.windows.handle.count

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.windows.handle.count | UpDownCounter | {handle} | 프로세스가 보유한 핸들(handle) 수예요. | | process

Metric: process.context_switches

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.context_switches | Counter | {context_switch} | 프로세스가 컨텍스트 스위치된 횟수예요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| process.context_switch.type | | Required | string | 이 데이터 포인트의 컨텍스트 스위치가 자발적(voluntary)인지 비자발적(involuntary)인지 지정해요. | voluntary; involuntary

process.context_switch.type은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| involuntary | involuntary |

| voluntary | voluntary |

Metric: process.paging.faults

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.paging.faults | Counter | {fault} | 프로세스가 유발한 페이지 폴트 수예요. | | process

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| system.paging.fault.type | | Recommended | string | 페이지 폴트의 유형이에요. 값은 반드시(MUST) major 또는 minor여야 해요. 이 속성 없이 메트릭이 보고된다면, major와 minor 페이지 폴트의 합이어야 해요. | minor

system.paging.fault.type은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| major | major |

| minor | minor |

Metric: process.signals_pending

이 메트릭은 옵트인(opt-in)이에요.

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.signals_pending | UpDownCounter | {signal} | 프로세스에 대해 대기 중인 신호 수예요. | | process

Metric: process.uptime

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| process.uptime | Gauge | s | 프로세스가 실행된 시간이에요. [1] | | process

[1]: 계측은 사용 가능한 가장 높은 정밀도로 초(seconds)를 부동소수점 숫자로 측정하는 double 유형의 게이지를 사용해야 해요(SHOULD). 실제 정확도는 계측과 운영체제에 따라 달라져요.

더 알아보기 (Learn more)