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

배터리 메트릭 시맨틱 컨벤션

원문 보기 위키 갱신

Status: Development

출처: 문서

본문

  • 배터리 메트릭 hw.battery.*
    • 메트릭: hw.battery.charge
    • 메트릭: hw.battery.charge.limit
    • 메트릭: hw.battery.time_left
    • 메트릭: hw.status (Battery)

배터리 메트릭 hw.battery.*

컴퓨터 시스템 또는 UPS의 배터리.

메트릭: hw.battery.charge

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.battery.charge Gauge 1 배터리 충전의 남은 비율이에요.

속성(Attributes):

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 내에서 고유한 하드웨어 컴포넌트의 식별자예요. win32battery_battery_testsysa33_1
hw.battery.capacity Recommended string 와트시(Watts-hours) 또는 암페어시(Ampere-hours) 단위의 설계 용량이에요. 9.3Ah; 50Wh
hw.battery.chemistry Recommended string 배터리 화학 성분이에요. 예: Lithium-Ion, Nickel-Cadmium 등. Li-ion; NiMH
hw.model Recommended string 하드웨어 컴포넌트의 설명적 모델 이름이에요. PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.name Recommended string 하드웨어 컴포넌트의 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저 또는 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0
hw.vendor Recommended string 하드웨어 컴포넌트의 공급업체 이름이에요. Dell; HP; Intel; AMD; LSI; Lenovo

메트릭: hw.battery.charge.limit

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.battery.charge.limit Gauge 1 올바른 작동을 보장하기 위한 배터리 충전 비율의 하한이에요.

속성(Attributes):

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 내에서 고유한 하드웨어 컴포넌트의 식별자예요. win32battery_battery_testsysa33_1
hw.battery.capacity Recommended string 와트시(Watts-hours) 또는 암페어시(Ampere-hours) 단위의 설계 용량이에요. 9.3Ah; 50Wh
hw.battery.chemistry Recommended string 배터리 화학 성분이에요. 예: Lithium-Ion, Nickel-Cadmium 등. Li-ion; NiMH
hw.limit_type Recommended string 기기 작동과 건강과 관련된 배터리 충전 수준 임계값을 나타내요. 각 limit_type은 최소 또는 최대 최적 충전, 셧다운 임계값, 에너지 절약 임계값 같은 특정 충전 제한을 의미해요. 이 값들은 보통 하드웨어나 펌웨어가 안전하고 효율적인 배터리 사용을 안내하기 위해 제공해요. critical; throttled; degraded
hw.model Recommended string 하드웨어 컴포넌트의 설명적 모델 이름이에요. PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.name Recommended string 하드웨어 컴포넌트의 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저 또는 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0
hw.vendor Recommended string 하드웨어 컴포넌트의 공급업체 이름이에요. Dell; HP; Intel; AMD; LSI; Lenovo

hw.limit_type에는 다음과 같은 잘 알려진 값들이 있어요. 그중 하나가 해당되면 그 값을 반드시 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용해도 돼요(MAY).

Value Description Stability
critical Critical
degraded Degraded
high.critical High Critical
high.degraded High Degraded
low.critical Low Critical
low.degraded Low Degraded
max Maximum
throttled Throttled
turbo Turbo

메트릭: hw.battery.time_left

이 메트릭은 권장돼요.

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
hw.battery.time_left Gauge s 배터리가 완전히 충전되거나 방전되기까지 남은 시간이에요.

속성(Attributes):

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.battery.state Conditionally Required If the battery is charging or discharging string 배터리의 현재 상태예요. [1] charging; discharging
hw.battery.capacity Recommended string 와트시(Watts-hours) 또는 암페어시(Ampere-hours) 단위의 설계 용량이에요. 9.3Ah; 50Wh
hw.battery.chemistry Recommended string 배터리 화학 성분이에요. 예: Lithium-Ion, Nickel-Cadmium 등. Li-ion; NiMH
hw.model Recommended string 하드웨어 컴포넌트의 설명적 모델 이름이에요. PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.name Recommended string 하드웨어 컴포넌트의 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저 또는 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0
hw.vendor Recommended string 하드웨어 컴포넌트의 공급업체 이름이에요. Dell; HP; Intel; AMD; LSI; Lenovo

[1] hw.battery.state: hw.state 속성은 배터리의 현재 상태를 나타내야 해요. "charging" 또는 "discharging" 같은 사전 정의된 상태 중 하나여야 해요.

hw.battery.state에는 다음과 같은 잘 알려진 값들이 있어요. 그중 하나가 해당되면 그 값을 반드시 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용해도 돼요(MAY).

Value Description Stability
charging Charging
discharging Discharging

hw.state에는 다음과 같은 잘 알려진 값들이 있어요. 그중 하나가 해당되면 그 값을 반드시 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용해도 돼요(MAY).

Value Description Stability
degraded Degraded
failed Failed
needs_cleaning Needs Cleaning
ok OK
predicted_failure Predicted Failure

메트릭: hw.status (Battery)

이 메트릭은 권장돼요.

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 값을 검색하기 위해 타임시리즈 백엔드를 쿼리하는 방식에 어떤 영향도 주지 않을 것으로 예상돼요.

속성(Attributes):

Key Stability Requirement Level Value Type Description Example Values
hw.id Required string 모니터링되는 호스트 내에서 고유한 하드웨어 컴포넌트의 식별자예요. win32battery_battery_testsysa33_1
hw.state Required string 컴포넌트의 현재 상태예요. [1] ok; degraded; failed; charging; discharging
hw.type Required string 컴포넌트의 유형이에요. [2] battery
hw.battery.capacity Recommended string 와트시(Watts-hours) 또는 암페어시(Ampere-hours) 단위의 설계 용량이에요. 9.3Ah; 50Wh
hw.battery.chemistry Recommended string 배터리 화학 성분이에요. 예: Lithium-Ion, Nickel-Cadmium 등. Li-ion; NiMH
hw.model Recommended string 하드웨어 컴포넌트의 설명적 모델 이름이에요. PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.name Recommended string 하드웨어 컴포넌트의 쉽게 알아볼 수 있는 이름이에요. eth0
hw.parent Recommended string 부모 컴포넌트의 고유 식별자예요 (보통 인클로저 또는 디스크 컨트롤러의 hw.id 속성). dellStorage_perc_0
hw.vendor Recommended string 하드웨어 컴포넌트의 공급업체 이름이에요. Dell; HP; Intel; AMD; LSI; Lenovo

[1] hw.state: 반드시 다음 값 중 하나로 설정해야 해요(MUST):

  • ok: 배터리가 정상적으로 작동 중입니다.
  • degraded: 배터리가 축소된 기능이나 성능으로 작동 중입니다.
  • failed: 배터리가 고장 나서 작동하지 않습니다.
  • charging: 배터리가 현재 충전 중입니다.
  • discharging: 배터리가 현재 방전 중입니다.

[2] hw.type: 반드시 battery로 설정해야 해요(MUST).

hw.state에는 다음과 같은 잘 알려진 값들이 있어요. 그중 하나가 해당되면 그 값을 반드시 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용해도 돼요(MAY).

Value Description Stability
degraded Degraded
failed Failed
needs_cleaning Needs Cleaning
ok OK
predicted_failure Predicted Failure

hw.type에는 다음과 같은 잘 알려진 값들이 있어요. 그중 하나가 해당되면 그 값을 반드시 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용해도 돼요(MAY).

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