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

Node.js 런타임 메트릭 시맨틱 컨벤션 (Semantic conventions for Node.js runtime metrics)

원문 보기 위키 갱신

Status: Development

출처: 문서

본문

이 문서는 OpenTelemetry에서 Node.js 런타임 메트릭에 대한 시맨틱 컨벤션을 설명해요.

  • Metric: nodejs.eventloop.delay.min
  • Metric: nodejs.eventloop.delay.max
  • Metric: nodejs.eventloop.delay.mean
  • Metric: nodejs.eventloop.delay.stddev
  • Metric: nodejs.eventloop.delay.p50
  • Metric: nodejs.eventloop.delay.p90
  • Metric: nodejs.eventloop.delay.p99
  • Metric: nodejs.eventloop.utilization
  • Metric: nodejs.eventloop.time

Description: 개발 중인 Node.js 런타임 메트릭으로, nodejs 아래에서 캡처돼요.

Note: 이벤트 루프 지연(delay) 메트릭은 단일 히스토그램 대신 개별 값으로 나뉘어 있어요. node 런타임이 perf_hooks.monitorEventLoopDelay([options])를 통해 단일 값만 반환하고 전체 히스토그램을 반환하지 않기 때문에, 이를 OpenTelemetry 히스토그램으로 변환할 수 없기 때문이에요.

Metric: nodejs.eventloop.delay.min

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.min Gauge s 이벤트 루프 최소 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.min 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.delay.max

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.max Gauge s 이벤트 루프 최대 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.max 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.delay.mean

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.mean Gauge s 이벤트 루프 평균 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.mean 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.delay.stddev

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.stddev Gauge s 이벤트 루프 표준편차 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.stddev 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.delay.p50

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.p50 Gauge s 이벤트 루프 50 백분위수 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.percentile(50) 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.delay.p90

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.p90 Gauge s 이벤트 루프 90 백분위수 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.percentile(90) 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.delay.p99

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.delay.p99 Gauge s 이벤트 루프 99 백분위수 지연. [1]

[1]: 값은 perf_hooks.monitorEventLoopDelay([options])의 histogram.percentile(99) 값에서 가져올 수 있어요.

Metric: nodejs.eventloop.utilization

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.utilization Gauge 1 이벤트 루프 활용도(utilization). [1]

[1]: 값의 범위는 [0.0, 1.0]이며 performance.eventLoopUtilization([utilization1[, utilization2]])에서 가져올 수 있어요.

Metric: nodejs.eventloop.time

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nodejs.eventloop.time Counter s 이벤트 루프가 각 상태에 있었던 누적 시간. [1]

[1]: 값은 performance.eventLoopUtilization([utilization1[, utilization2]])에서 가져올 수 있어요.

속성:

Key Stability Requirement Level Value Type Description Example Values
nodejs.eventloop.state Required string 이벤트 루프 시간의 상태예요. active; idle

nodejs.eventloop.state는 다음과 같은 잘 알려진 값들이 있어요. 그중 하나가 해당된다면 반드시 그 값을 사용해야 하고, 그렇지 않으면 사용자 정의 값을 사용할 수 있어요.

Value Description Stability
active 활성(Active) 시간.
idle 유휴(Idle) 시간.

더 알아보기 (Learn more)