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

공통 하드웨어 메트릭 시맨틱 컨벤션 (Semantic conventions for common hardware metrics)

원문 보기 위키 갱신

Status: Development

출처: 문서

본문

  • 공통 하드웨어 메트릭 (Common hardware metrics)
    • Metric: hw.energy
    • Metric: hw.errors
    • Metric: hw.power
    • Metric: hw.status

하드웨어 메트릭은 메트릭이 보고되는 기기, 머신, 또는 호스트를 식별하는 속성을 포함하지 않아요. 이 정보는 사용자 애플리케이션이 구성한 리소스 속성으로 제공될 것으로 기대돼요. 애플리케이션 개발자는 Host 리소스 속성을 구성하는 것을 권장해요.

공통 하드웨어 메트릭 (Common hardware metrics)

아래 메트릭은 모든 유형의 하드웨어 컴포넌트에 적용돼요.

Metric: hw.energy

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.energy Counter J 컴포넌트가 소비한 에너지예요.

속성:

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 안에서 고유한 하드웨어 컴포넌트 식별자예요. win32battery_battery_testsysa33_1
hw.type Required string 컴포넌트의 유형이에요. [1] battery; cpu; disk_controller
hw.name Recommended string 하드웨어 컴포넌트를 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저(enclosure)나 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0

[1] hw.type: hw.state가 보고되는 하드웨어 컴포넌트의 범주를 설명해요. 예를 들어 hw.type=temperature와 함께 hw.state=degraded라면 하드웨어 컴포넌트의 온도가 degraded로 보고되었음을 나타내요.

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

Value Description Stability
battery 배터리 (Battery)
cpu CPU
disk_controller 디스크 컨트롤러 (Disk controller)
enclosure 인클로저 (Enclosure)
fan 팬 (Fan)
gpu GPU
logical_disk 논리 디스크 (Logical disk)
memory 메모리 (Memory)
network 네트워크 (Network)
physical_disk 물리 디스크 (Physical disk)
power_supply 전원 공급 장치 (Power supply)
tape_drive 테이프 드라이브 (Tape drive)
temperature 온도 (Temperature)
voltage 전압 (Voltage)

Metric: hw.errors

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.errors Counter {error} 컴포넌트가 만난 오류의 개수예요.

속성:

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 안에서 고유한 하드웨어 컴포넌트 식별자예요. win32battery_battery_testsysa33_1
hw.type Required string 컴포넌트의 유형이에요. [1] battery; cpu; disk_controller
error.type Conditionally Required 오류가 발생한 경우에만 string 컴포넌트가 만난 오류의 유형이에요. [2] uncorrected; zero_buffer_credit; crc; bad_sector
hw.name Recommended string 하드웨어 컴포넌트를 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저(enclosure)나 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0

[1] hw.type: hw.state가 보고되는 하드웨어 컴포넌트의 범주를 설명해요. 예를 들어 hw.type=temperature와 함께 hw.state=degraded라면 하드웨어 컴포넌트의 온도가 degraded로 보고되었음을 나타내요.

[2] error.type: error.type은 컴포넌트가 보고한 오류 코드, 오류의 정식 이름(canonical name), 또는 다른 낮은 카디널리티(low-cardinality)의 오류 식별자와 일치해야 합니다 (SHOULD). 계측은 자신이 보고하는 오류 목록을 문서화해야 합니다 (SHOULD).

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

Value Description Stability
_OTHER 계측이 사용자 정의 값을 정의하지 않을 때 사용할 대체 오류 값이에요.

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

Value Description Stability
battery 배터리 (Battery)
cpu CPU
disk_controller 디스크 컨트롤러 (Disk controller)
enclosure 인클로저 (Enclosure)
fan 팬 (Fan)
gpu GPU
logical_disk 논리 디스크 (Logical disk)
memory 메모리 (Memory)
network 네트워크 (Network)
physical_disk 물리 디스크 (Physical disk)
power_supply 전원 공급 장치 (Power supply)
tape_drive 테이프 드라이브 (Tape drive)
temperature 온도 (Temperature)
voltage 전압 (Voltage)

Metric: hw.power

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.power Gauge W 컴포넌트가 소비하는 순간 전력(instantaneous power)이에요. [1]

[1]: 가능하다면 hw.power 대신 hw.energy를 보고하는 것이 권장돼요.

속성:

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 안에서 고유한 하드웨어 컴포넌트 식별자예요. win32battery_battery_testsysa33_1
hw.type Required string 컴포넌트의 유형이에요. [1] battery; cpu; disk_controller
hw.name Recommended string 하드웨어 컴포넌트를 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저(enclosure)나 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0

[1] hw.type: hw.state가 보고되는 하드웨어 컴포넌트의 범주를 설명해요. 예를 들어 hw.type=temperature와 함께 hw.state=degraded라면 하드웨어 컴포넌트의 온도가 degraded로 보고되었음을 나타내요.

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

Value Description Stability
battery 배터리 (Battery)
cpu CPU
disk_controller 디스크 컨트롤러 (Disk controller)
enclosure 인클로저 (Enclosure)
fan 팬 (Fan)
gpu GPU
logical_disk 논리 디스크 (Logical disk)
memory 메모리 (Memory)
network 네트워크 (Network)
physical_disk 물리 디스크 (Physical disk)
power_supply 전원 공급 장치 (Power supply)
tape_drive 테이프 드라이브 (Tape drive)
temperature 온도 (Temperature)
voltage 전압 (Voltage)

Metric: hw.status

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.status UpDownCounter 1 작동 상태: 각 가능한 상태에 대해 1(true) 또는 0(false)이에요. [1]

[1]: hw.status는 현재 UpDownCounter로 명시되어 있지만, 이상적으로는 OpenMetrics에 정의된 StateSet으로 표현되어야 해요. 이 시맨틱 컨벤션은 OpenTelemetry에 StateSet이 명시되면 업데이트될 예정이에요. 이 계획된 변경은 사용자가 시간에 따른 hw.status 값을 검색하기 위해 타임시리즈 백엔드를 쿼리하는 방식에 어떤 영향도 주지 않을 것으로 예상돼요.

속성:

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 안에서 고유한 하드웨어 컴포넌트 식별자예요. win32battery_battery_testsysa33_1
hw.state Required string 컴포넌트의 현재 상태예요. degraded; failed; needs_cleaning
hw.type Required string 컴포넌트의 유형이에요. [1] battery; cpu; disk_controller
hw.name Recommended string 하드웨어 컴포넌트를 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저(enclosure)나 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0

[1] hw.type: hw.state가 보고되는 하드웨어 컴포넌트의 범주를 설명해요. 예를 들어 hw.type=temperature와 함께 hw.state=degraded라면 하드웨어 컴포넌트의 온도가 degraded로 보고되었음을 나타내요.

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

Value Description Stability
degraded 저하됨 (Degraded)
failed 실패 (Failed)
needs_cleaning 청소 필요 (Needs Cleaning)
ok 정상 (OK)
predicted_failure 예측된 실패 (Predicted Failure)

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

Value Description Stability
battery 배터리 (Battery)
cpu CPU
disk_controller 디스크 컨트롤러 (Disk controller)
enclosure 인클로저 (Enclosure)
fan 팬 (Fan)
gpu GPU
logical_disk 논리 디스크 (Logical disk)
memory 메모리 (Memory)
network 네트워크 (Network)
physical_disk 물리 디스크 (Physical disk)
power_supply 전원 공급 장치 (Power supply)
tape_drive 테이프 드라이브 (Tape drive)
temperature 온도 (Temperature)
voltage 전압 (Voltage)

더 알아보기 (Learn more)